Skip to content

Commit 67e778f

Browse files
authored
chore: switched minifier from @rollup/plugin-terser to rollup-plugin-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
1 parent 4bc910e commit 67e778f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"devDependencies": {
7474
"@commitlint/cli": "17.6.6",
7575
"@commitlint/config-conventional": "17.6.6",
76-
"@rollup/plugin-terser": "0.4.3",
7776
"@types/chai": "4.3.5",
7877
"@types/mocha": "10.0.1",
7978
"@types/node": "18.15.13",
@@ -92,6 +91,8 @@
9291
"rimraf": "5.0.1",
9392
"rollup": "3.26.0",
9493
"rollup-plugin-copy": "3.4.0",
94+
"rollup-plugin-esbuild": "6.1.1",
95+
"rollup-plugin-esbuild-minify": "1.1.2",
9596
"semver": "7.5.3",
9697
"serve-index": "1.9.1",
9798
"standard": "17.1.0",

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Rollup creates the browser version of the polyfill and ponyfill. */
22
import path from 'path'
33
import copy from 'rollup-plugin-copy'
4-
import terser from '@rollup/plugin-terser'
4+
import { minify } from 'rollup-plugin-esbuild'
55

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

@@ -128,7 +128,7 @@ export default [
128128
`)
129129
},
130130
plugins: [
131-
terser()
131+
minify()
132132
]
133133
}
134134
]

0 commit comments

Comments
 (0)