Conflict With `rollup-plugin-obfuscator'`
greenhat616 opened this issue · comments
Jonson Petard commented
If rollup-plugin-obfuscator
is configured, it will occur errors, like:
❯ pnpm build
> @hitokoto/frontend-template@1.0.0 build
[vite-ssg] Build for client...
vite v2.8.4 building for production...
✓ 64 modules transformed.
The "transform" hook used by the output plugin rollup-plugin-obfuscator is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.
dist/index.html 1.09 KiB
dist/manifest.webmanifest 0.17 KiB
dist/ssr-manifest.json 6.40 KiB
dist/assets/app.3d5ce373.css 6.88 KiB / gzip: 1.83 KiB
dist/assets/README.d51f3235.js 73.70 KiB / gzip: 34.76 KiB
dist/assets/_...all_.3d6f94c1.js 79.95 KiB / gzip: 37.44 KiB
dist/assets/home.ab6fac1b.js 67.47 KiB / gzip: 31.74 KiB
dist/assets/about.3b3c0f10.js 84.49 KiB / gzip: 40.37 KiB
dist/assets/404.dd226846.js 84.68 KiB / gzip: 39.75 KiB
dist/assets/app.d619a5f5.js 217.74 KiB / gzip: 100.79 KiB
dist/assets/virtual_pwa-register.1032e1c7.js 279.37 KiB / gzip: 127.92 KiB
dist/assets/vendor.534dbbfd.js 3482.31 KiB / gzip: 1583.62 KiB
(!) Some chunks are larger than 500 KiB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
PWA v0.11.13
mode generateSW
precache 10 entries (895.38 KiB)
files generated
dist/sw.js
dist/workbox-b7e829be.js
warnings
assets/vendor.534dbbfd.js is 3.57 MB, and won't be precached. Configure maximumFileSizeToCacheInBytes to change this limit.
[vite-ssg] Build for server...
vite v2.8.4 building SSR bundle for production...
✓ 25 modules transformed.
The "transform" hook used by the output plugin rollup-plugin-obfuscator is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.
.vite-ssg-temp/manifest.webmanifest 0.17 KiB
.vite-ssg-temp/assets/style.67db617f.css 8.34 KiB
.vite-ssg-temp/main.cjs 617.24 KiB
#
# Fatal error in , line 0
# Fatal JavaScript invalid size error 184071938
#
#
#
#FailureMessage Object: 0x7ffdf1fa0720
1: 0xb9b7e1 [node]
2: 0x1d2e954 V8_Fatal(char const*, ...) [node]
3: 0xea7078 [node]
4: 0x1062eb2 [node]
5: 0x1063776 [node]
6: 0x121f2e3 v8::internal::Runtime_GrowArrayElements(int, unsigned long*, v8::internal::Isolate*) [node]
7: 0x16325b9 [node]
Trace/breakpoint trap