mirror of https://github.com/vuejs/core.git
fix(build): use consistent minify options from previous terser config
This commit is contained in:
parent
f1aae57dfe
commit
789675f65d
|
@ -374,7 +374,11 @@ function createMinifiedConfig(/** @type {PackageFormat} */ format) {
|
||||||
) {
|
) {
|
||||||
const { code, map } = await minifySwc(contents, {
|
const { code, map } = await minifySwc(contents, {
|
||||||
module: format === 'es',
|
module: format === 'es',
|
||||||
compress: true,
|
compress: {
|
||||||
|
ecma: 2016,
|
||||||
|
pure_getters: true,
|
||||||
|
},
|
||||||
|
safari10: true,
|
||||||
mangle: true,
|
mangle: true,
|
||||||
sourceMap: !!sourcemap,
|
sourceMap: !!sourcemap,
|
||||||
inlineSourcesContent: !sourcemapExcludeSources,
|
inlineSourcesContent: !sourcemapExcludeSources,
|
||||||
|
|
Loading…
Reference in New Issue