build: fix build issue with vite/vite-pwa/parakeet; upgrade deps

This commit is contained in:
鲁树人
2023-12-21 22:49:12 +00:00
parent 83b06dbe60
commit 889a6cbcd0
7 changed files with 1522 additions and 1723 deletions

View File

@@ -86,6 +86,8 @@ export default defineConfig({
alias: {
'~': path.resolve(__dirname, 'src'),
'@nm': path.resolve(__dirname, 'node_modules'),
// workaround for vite, workbox (PWA) and Emscripten transpiled parakeet lib (use of `import("module")`)
module: path.resolve(__dirname, 'src', 'dummy.mjs'),
},
},