Reduce production bundles while preserving host registration

This commit is contained in:
vorotamoroz committed 2026-10-29 15:06:33 +00:00
1 parent b9dcb0d4c7
commit b8d4ff2c16
10 files changed
+133 -20

No files matched your search

+6 -1
View File
@@ -60,7 +60,12 @@ const terserOption = {
hoist_vars: true,
// toplevel: "vars",
},
mangle: false,
// Keep property keys, reflective names, and eval-visible bindings stable.
mangle: {
properties: false,
toplevel: false,
eval: false,
},
ecma: 2018, // specify one of: 5, 2015, 2016, etc.
enclose: false, // or specify true, or "args:values"