fix error loading WASM file

This commit is contained in:
2025-05-25 07:45:07 -06:00
parent 6556eb55a3
commit 54f269054f
4 changed files with 25 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ export default defineConfig({
mainFields: ['module', 'jsnext:main', 'jsnext', 'main'],
},
optimizeDeps: {
include: ['nostr-tools', 'nostr-tools/nip06', 'nostr-tools/core'],
include: ['nostr-tools', 'nostr-tools/nip06', 'nostr-tools/core', '@jlongster/sql.js'],
esbuildOptions: {
define: {
global: 'globalThis'
@@ -48,5 +48,6 @@ export default defineConfig({
}
}
}
}
},
assetsInclude: ['**/*.wasm']
});