fix: build issue with libparakeet

This commit is contained in:
鲁树人 2023-06-09 01:00:57 +01:00
parent 953f0d524d
commit 5974ef3d0c
2 changed files with 5 additions and 0 deletions

1
src/dummy.mjs Normal file
View File

@ -0,0 +1 @@
// This is a dummy module for vite/rollup to resolve.

View File

@ -23,6 +23,9 @@ const version = `${pkg.version}-${shortCommit}`;
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
worker: {
format: 'es',
},
server: { server: {
fs: { fs: {
// Note: // Note:
@ -85,6 +88,7 @@ export default defineConfig({
resolve: { resolve: {
alias: { alias: {
'~': path.resolve(__dirname, 'src'), '~': path.resolve(__dirname, 'src'),
module: path.resolve(__dirname, 'src', 'dummy.mjs'),
}, },
}, },
build: { build: {