From d2eeaab5f572590b290fa61c0f71b5c759c4fc49 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 1 Oct 2021 12:49:41 +0200 Subject: [PATCH] get assets paths with import "asset?url" specifically for vitejs --- src/sdk/paths/vite.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/sdk/paths/vite.ts diff --git a/src/sdk/paths/vite.ts b/src/sdk/paths/vite.ts new file mode 100644 index 00000000..c3ce3188 --- /dev/null +++ b/src/sdk/paths/vite.ts @@ -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;