Преглед изворни кода

fix(build): use consistent minify options from previous terser config

Evan You пре 1 година
родитељ
комит
789675f65d
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      rollup.config.js

+ 5 - 1
rollup.config.js

@@ -374,7 +374,11 @@ function createMinifiedConfig(/** @type {PackageFormat} */ format) {
         ) {
           const { code, map } = await minifySwc(contents, {
             module: format === 'es',
-            compress: true,
+            compress: {
+              ecma: 2016,
+              pure_getters: true,
+            },
+            safari10: true,
             mangle: true,
             sourceMap: !!sourcemap,
             inlineSourcesContent: !sourcemapExcludeSources,