mirror of
https://github.com/zadam/trilium.git
synced 2026-01-12 09:34:26 +01:00
fix(client-standalone): build missing .wasm
This commit is contained in:
parent
4da20f4829
commit
807ab4be8c
@ -30,8 +30,8 @@ const sqliteWasmPlugin = viteStaticCopy({
|
||||
targets: [
|
||||
{
|
||||
// Copy the entire jswasm directory to maintain the module's expected structure
|
||||
src: "../../../node_modules/@sqlite.org/sqlite-wasm/sqlite-wasm/jswasm/*",
|
||||
dest: "node_modules/@sqlite.org/sqlite-wasm/sqlite-wasm/jswasm"
|
||||
src: "../../../node_modules/@sqlite.org/sqlite-wasm/sqlite-wasm/jswasm/sqlite3.wasm",
|
||||
dest: "assets"
|
||||
}
|
||||
]
|
||||
});
|
||||
@ -130,6 +130,9 @@ export default defineConfig(() => ({
|
||||
optimizeDeps: {
|
||||
exclude: ['@sqlite.org/sqlite-wasm', '@triliumnext/core']
|
||||
},
|
||||
worker: {
|
||||
format: "es" as const
|
||||
},
|
||||
commonjsOptions: {
|
||||
transformMixedEsModules: true,
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user