forked from mystiq/hydrogen-web
get assets paths with import "asset?url" specifically for vitejs
This commit is contained in:
parent
aac0e74b9d
commit
d2eeaab5f5
1 changed files with 12 additions and 0 deletions
12
src/sdk/paths/vite.ts
Normal file
12
src/sdk/paths/vite.ts
Normal 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;
|
Loading…
Reference in a new issue