mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 03:32:36 +08:00
build: no legacy chunks
This commit is contained in:
parent
23668ee74e
commit
0bf8807b50
|
@ -12,11 +12,12 @@ export default defineConfig({
|
||||||
svgr(),
|
svgr(),
|
||||||
react(),
|
react(),
|
||||||
legacy({
|
legacy({
|
||||||
targets: ["edge>=109", "safari>=13"],
|
renderLegacyChunks: false,
|
||||||
|
modernTargets: ["edge>=109", "safari>=13"],
|
||||||
modernPolyfills: true,
|
modernPolyfills: true,
|
||||||
polyfills: ["web.structured-clone"],
|
|
||||||
additionalModernPolyfills: [
|
additionalModernPolyfills: [
|
||||||
"core-js/modules/es.object.has-own.js",
|
"core-js/modules/es.object.has-own.js",
|
||||||
|
"core-js/modules/web.structured-clone.js",
|
||||||
path.resolve("./src/polyfills/matchMedia.js"),
|
path.resolve("./src/polyfills/matchMedia.js"),
|
||||||
path.resolve("./src/polyfills/WeakRef.js"),
|
path.resolve("./src/polyfills/WeakRef.js"),
|
||||||
path.resolve("./src/polyfills/RegExp.js"),
|
path.resolve("./src/polyfills/RegExp.js"),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user