mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-21 13:34:04 +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: {
|
alias: {
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||||
'node:fs/promises': fileURLToPath(new URL('./src/_empty.ts', 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)),
|
'@babel/core': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
||||||
'isolated-vm': 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,
|
// minify: false,
|
||||||
// cssMinify: false,
|
// cssMinify: false,
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ['node:fs/promises', 'fs', 'regex', './out/isolated_vm', 'isolated-vm'],
|
external: ['node:fs/promises', 'regex', './out/isolated_vm', 'isolated-vm'],
|
||||||
output: {
|
output: {
|
||||||
format: 'es',
|
format: 'es',
|
||||||
manualChunks: (id) => {
|
manualChunks: (id) => {
|
||||||
|
|||||||
Reference in new issue
Block a user