fix(js): remove 'priority' option

- Terser really doesn't like unsupported options
- 'priority' is introduced in 887eeda3cc
This commit is contained in:
curbengh 2019-11-09 07:18:59 +00:00
parent de425e4b6f
commit 2548eb20bf
No known key found for this signature in database
GPG Key ID: 21EA847C35D6E034
1 changed files with 2 additions and 1 deletions

View File

@ -90,8 +90,9 @@ function minifyJs (str, data) {
// Terser doesn't like unsupported options
const jsOptions = Object.assign({}, options)
delete jsOptions.enable
delete jsOptions.exclude
delete jsOptions.priority
delete jsOptions.logger
delete jsOptions.exclude
delete jsOptions.globOptions
const { code } = Terser.minify(str, jsOptions)