]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(build): use consistent minify options from previous terser config
authorEvan You <evan@vuejs.org>
Mon, 15 Jul 2024 08:25:58 +0000 (16:25 +0800)
committerEvan You <evan@vuejs.org>
Mon, 15 Jul 2024 08:29:41 +0000 (16:29 +0800)
rollup.config.js

index 1253a42e0dbdbaa862aa33101f2b3b51bbd37045..ff0da348826a53c71f51a261c5aa08670da0052f 100644 (file)
@@ -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,