diff --git a/package.json b/package.json index 30f0690..c88009b 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/rollup.config.js b/rollup.config.js index dfd00e5..0958bd2 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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') @@ -128,7 +128,7 @@ export default [ `) }, plugins: [ - terser() + minify() ] } ]