-
Notifications
You must be signed in to change notification settings - Fork 55
Rollup 3.0.0 #119
Comments
Same here, but with Rollup 3.1.0 npm ERR! code ERESOLVE |
Use: npm i rollup-plugin-minification -D as a replacement. rollup config: //import { terser } from "rollup-plugin-terser";
import { terser } from "rollup-plugin-minification";
//import { terser } from "rollup-plugin-terser";
import { minify } from "terser";
import { yourFunction } from "rollup-plugin-your-function";
const terser = () => yourFunction({
output: true,
name: "terser",
fn: async (source, options) => minify(
source,
{
module: (/^esm?$/).test(options.outputOptions.format),
toplevel: options.outputOptions.format === "cjs",
sourceMap: true
}
)
}); Maybe this is useful for anyone else besides me. |
Thanks! |
I don't think, that there will be much progress here at the moment. So, I decided to step in for a replacement. If have created rollup-plugin-minification, which you can use as a 1:1 replacement. Right now it is just the packed code I mentioned above . |
Wow ! The real captain ! 💯 Thank you for your time. |
Ahoy! ⚓😁 See you on the other bank. |
Just so everybody is aware, @tada5hi is contributing a Terser plugin to the official repo of Rollup plugins: rollup/plugins#1323 |
That is good to know. |
The official plugin with Rollup v3 support has been released: https://npmjs.com/package/@rollup/plugin-terser 🎉 |
That is good news. My replacement repository is now archived. I'll leave the npm package for a while for an easier transition. Cheers everyone. |
I'd also recommend |
True and done. |
rollup-plugin-minification has been obsoleted |
This plugin isn't compatible with Rollup 3.0.0.
Do you intend on updating it ?
Thanks.
The text was updated successfully, but these errors were encountered: