-
-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(terser): initial release #1323
Conversation
@shellscape something missing ? |
@tada5hi huh? @TrySound please weigh in here. relevant comment from previous PR #1182 (comment) of note, we'll only add a new plugin here if it has a dedicated maintainer as we're very short on help in this repo. |
If @TrySound will not update his own terser plugin for rollup, like it looks like at the moment, @shellscape i will maintain the terser plugin in this monorepo. But I would really like to use terser with rollup v3+ 🙈😅 Greetings |
Thanks for volunteering to maintain it. As long as @TrySound is cool with this, we can proceed. We try to respect the authors of established plugins as much as is possible. I'll ping him on some other channels to see if I can get his eyes on this. |
Followup: I have an older conversation from May 4, 2022 with @TrySound archived in which he stated that he was OK with his plugin being imported here. Let's give him a day or so to reply and if he doesn't have the chance, we can proceed. In the mean time, please look into the errors with CI which will need to be resolved before we can merge: https://github.com/rollup/plugins/actions/runs/3291680331/jobs/5426137184#step:8:21 |
Looks like this plugin is missing workers support. Do you plan to add it in other PR? |
Very gladly 😊 . I totally agree and I'm open to anything. Like i already mentioned, it would be nice to use terser with rollup v3+ however this should be possible😅 @shellscape i resolved the issues |
I'm completely open If there is a need, I am very happy to integrate it again. |
b353836
to
3038271
Compare
@shellscape can you permit workflow execution again, to check if everything is fine now ? |
@tada5hi looks like a linting error. from the repo root, run |
@shellscape thx. I unfortunately forgot to lint the root readme 🙈 |
@shellscape is there something missing i should do ? |
* build(terser): add terser plugin to collection * build(terser): add README.md notice * fix(terser): test-suite + rollup plugin definition * style(terser): applied prettier rules * style(terser): apply prettier on root README.md + minor eslint fixes * test(terser): removed snapshot test due incorrect path with ava
Great work @tada5hi ❤️ Tested the newly released plugin on https://github.com/sweetalert2/sweetalert2 and everything works perfectly 🎉 |
@tada5hi that'd be great (and thanks for adding this plugin). We're seeing about a four minute slowdown using this plugin vs. rollup-plugin-terser. |
Perhaps it would be good to open as an issue, since this was merged? Hope to see the update, as well. |
Issue #1334 |
i will try to implement this soon 😊 |
Very glad, that you guys like and appreciate the contribution 😊 ✌️ |
|
||
## Requirements | ||
|
||
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v14.0.0+) and Rollup v1.20.0+. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it actually requires Rollup 2+ according to the peer dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point 🙈
Could not find info, is this a drop in replacement for rollup-plugin-terser ? |
Rollup Plugin Name:
terser
This PR contains:
Are tests included?
Breaking Changes?
If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.
List any relevant issue numbers:
Description