Skip to content

Commit

Permalink
chore: switched minifier from @rollup/plugin-terser to rollup-plugin-…
Browse files Browse the repository at this point in the history
…esbuild (#195)

* fix: github actions was checking out the wrong ref

* chore: switched minifier from @roll-up/plugin-terser to rollup-plugin-esbuild-minify

* chore: chore: switched minifier from @roll-up/plugin-terser to rollup-plugin-esbuild
  • Loading branch information
lquixada committed Dec 21, 2024
1 parent 7f60a0f commit ccaf40b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"devDependencies": {
"@commitlint/cli": "17.6.6",
"@commitlint/config-conventional": "17.6.6",
"@rollup/plugin-terser": "0.4.3",
"@types/chai": "4.3.5",
"@types/mocha": "10.0.1",
"@types/node": "18.15.13",
Expand All @@ -92,6 +91,8 @@
"rimraf": "5.0.1",
"rollup": "3.26.0",
"rollup-plugin-copy": "3.4.0",
"rollup-plugin-esbuild": "6.1.1",
"rollup-plugin-esbuild-minify": "1.1.2",
"semver": "7.5.3",
"serve-index": "1.9.1",
"standard": "17.1.0",
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Rollup creates the browser version of the polyfill and ponyfill. */
import path from 'path'
import copy from 'rollup-plugin-copy'
import terser from '@rollup/plugin-terser'
import { minify } from 'rollup-plugin-esbuild'

const input = path.join(__dirname, 'node_modules', 'whatwg-fetch', 'fetch.js')

Expand Down Expand Up @@ -128,7 +128,7 @@ export default [
`)
},
plugins: [
terser()
minify()
]
}
]

0 comments on commit ccaf40b

Please sign in to comment.