mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
get assets paths with import "asset?url" specifically for vitejs
This commit is contained in:
parent
aac0e74b9d
commit
d2eeaab5f5
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 New Issue
Block a user