Skip to content

Commit 0e746ea

Browse files
committed
chore: switched minifier from @roll-up/plugin-terser to rollup-plugin-esbuild-minify
1 parent 3a7a6d8 commit 0e746ea

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.github/workflows/pr.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828
name: Install
2929
runs-on: ubuntu-latest
3030
steps:
31-
- name: Blah
32-
run: echo blah
3331
- uses: actions/checkout@v3
3432
with:
3533
ref: ${{ github.event.pull_request.head.sha }}

package.json

Lines changed: 1 addition & 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,7 @@
9291
"rimraf": "5.0.1",
9392
"rollup": "3.26.0",
9493
"rollup-plugin-copy": "3.4.0",
94+
"rollup-plugin-esbuild-minify": "1.1.2",
9595
"semver": "7.5.3",
9696
"serve-index": "1.9.1",
9797
"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-minify'
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)