TrySound / rollup-plugin-uglify

Rollup plugin to minify generated bundle
MIT License
260 stars 42 forks source link

support for rollup 2.0 #82

Open bkdotcom opened 4 years ago

bkdotcom commented 4 years ago

rollup-plugin-uglify:

  "peerDependencies": {
    "rollup": ">=0.66.0 <2"
  },

how can I use rollup-plugin-uglify with rollup 2.x?

yairEO commented 4 years ago

@TrySound - I also need to know this, thanks

TrySound commented 4 years ago

Better use terser https://github.com/TrySound/rollup-plugin-terser

kmxz commented 2 years ago

UglifyJS is still being maintained, not yet deprecated, and I don't see a strong reason to migrate from UglifyJS to Terser for projecting not outputting ES6+ code. It would be great if we can keep using rollup-plugin-uglify instead of rollup-plugin-terser.

Any change to get the PR (for supporting rollup 2) merged?

LeoDog896 commented 1 year ago

Still relevant -- I was going to combine the workflow used in markedjs, and uglify produces a smaller bundle size than terser as of now.

kongyangsong commented 1 year ago

rollup-plugin-uglify:

  "peerDependencies": {
    "rollup": ">=0.66.0 <2"
  },

how can I use rollup-plugin-uglify with rollup 2.x?

I fixed this with command "npm i rollup-plugin-uglify -D --force"