Skip to content

Commit

Permalink
Fix ES6
Browse files Browse the repository at this point in the history
  • Loading branch information
Dianliang233 committed Dec 19, 2023
1 parent 71180bf commit 054c6ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const config = (env, argv) => {
return {
code: await prettier.format(terserStep.code, {
filepath: Object.keys(file)[0],
trailingComma: 'es5',
}),
map: terserStep.map,
warnings: terserStep.warnings,
Expand All @@ -81,6 +82,7 @@ const config = (env, argv) => {
},
extractComments: false,
terserOptions: {
ecma: 5,
compress: { pure_funcs: ['generateBlockMap'], passes: 2 },
mangle: false,
format: {
Expand Down

0 comments on commit 054c6ef

Please sign in to comment.