mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
chore: optimize build and disable preload
This commit is contained in:
1 parent
7a48c2fe41
commit
8de053540a
1 file changed
+3
-1
+3
-1
@@ -127,7 +127,9 @@ export default defineConfig({
|
||||
target: 'esnext',
|
||||
// sourcemap: false,
|
||||
minify: !process.env.VERCEL,
|
||||
reportCompressedSize: !process.env.VERCEL,
|
||||
// cssMinify: false,
|
||||
modulePreload: false,
|
||||
rollupOptions: {
|
||||
external: ['regex', './out/isolated_vm', 'isolated-vm'],
|
||||
output: {
|
||||
@@ -151,7 +153,7 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: ['re2-wasm-embedded', 'isolated-vm', 'pdfjs-dist'], // optionally specify dependency name
|
||||
include: ['isolated-vm', 'pdfjs-dist'], // optionally specify dependency name
|
||||
esbuildOptions: {
|
||||
supported: {
|
||||
'top-level-await': true,
|
||||
|
||||
Reference in new issue
Block a user