fix: initial working version with libparakeet

This commit is contained in:
鲁树人
2023-05-13 20:03:32 +01:00
parent 3c1434b09f
commit 3d2761a2b1
4 changed files with 23 additions and 5 deletions

View File

@@ -6,6 +6,21 @@ import topLevelAwait from 'vite-plugin-top-level-await';
// https://vitejs.dev/config/
export default defineConfig({
server: {
fs: {
// Note:
// This is _insecure_, but is required to get pnpm link to work.
// strict: false,
allow: [
'src',
'node_modules',
// Allow pnpm to link.
'../libparakeet-js',
],
},
},
base: './',
optimizeDeps: {
exclude: ['@jixun/libparakeet'],