Skip to content

Commit

Permalink
Merge pull request #2 from myrotvorets/renovate/terser-5.x
Browse files Browse the repository at this point in the history
chore(deps): update dependency terser to v5
  • Loading branch information
myrotvorets-team authored Dec 22, 2024
2 parents 4b78af8 + 635a52e commit fc598b7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 59 deletions.
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default [
...Config,
{
languageOptions: {
ecmaVersion: 2020,
globals: {
...globals.node,
},
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = function (source, sourceMaps, meta) {

// minify js with terser
if (opts.minimize) {
template = terser.minify(template, opts.terserOptions).code + '';
template = (await terser.minify(template, opts.terserOptions)).code ?? '';
}

callback(null, 'module.exports = ' + template, sourceMaps, meta);
Expand Down
65 changes: 8 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"dependencies": {
"ejs": "^3.1.10",
"html-minifier-terser": "^7.2.0",
"terser": "^4.8.1"
"terser": "^5.37.0"
},
"devDependencies": {
"@myrotvorets/eslint-config-myrotvorets-ts": "^3.0.2",
Expand Down

0 comments on commit fc598b7

Please sign in to comment.