get assets paths with import "asset?url" specifically for vitejs

This commit is contained in:
Bruno Windels 2021-10-01 12:49:41 +02:00
parent aac0e74b9d
commit d2eeaab5f5

12
src/sdk/paths/vite.ts Normal file
View file

@ -0,0 +1,12 @@
import downloadSandboxPath from "../../../assets/download-sandbox.html?url";
import olmWasmPath from "../../../lib/olm/olm.wasm?url";
import olmJsPath from "../../../lib/olm/olm.js?url";
import olmLegacyJsPath from "../../../lib/olm/olm_legacy.js?url";
export const olmPaths = {
wasm: olmWasmPath,
legacyBundle: olmLegacyJsPath,
wasmBundle: olmJsPath,
};
export const downloadSandbox = downloadSandboxPath;