mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
fix: fs external
This commit is contained in:
1 parent
55fda63a4d
commit
cd492c2e23
1 file changed
+3
-1
+3
-1
@@ -103,6 +103,8 @@ export default defineConfig({
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
'node:fs/promises': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
||||
'node:fs': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
||||
'fs': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
||||
'@babel/core': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
||||
'isolated-vm': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
||||
},
|
||||
@@ -119,7 +121,7 @@ export default defineConfig({
|
||||
// minify: false,
|
||||
// cssMinify: false,
|
||||
rollupOptions: {
|
||||
external: ['node:fs/promises', 'fs', 'regex', './out/isolated_vm', 'isolated-vm'],
|
||||
external: ['node:fs/promises', 'regex', './out/isolated_vm', 'isolated-vm'],
|
||||
output: {
|
||||
format: 'es',
|
||||
manualChunks: (id) => {
|
||||
|
||||
Reference in new issue
Block a user