mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 05:47:26 +02:00
fix(client-standalone): build missing .wasm
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user