Skip to content
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

upgrade rollup #101

Merged
merged 2 commits into from
Nov 1, 2023
Merged

Conversation

boneskull
Copy link
Collaborator

This uses @rollup/plugin-terser instead of rollup-plugin-babel which is deprecated/unmaintained and contains security warnings.

Because these are two different minifiers, the output is slightly different (terser is, well, more terse), but I've configured it so it's reasonably close to the old minified distfile.

I was only able to get to rollup v3.x; rollup v4.x requires Node.js v18.x. We can upgrade to v4.x once we decide to drop Node.js v16.x support.

Screenshot of the diff between the new (left) and old (right):

image

The non-minified output is the same except that the new one omits Object.defineProperty(exports, '__esModule', { value: true }) from the output. This change looks like it comes out of Rollup v3 itself.

This uses `@rollup/plugin-terser` instead of `rollup-plugin-babel` which is deprecated/unmaintained and contains security warnings.

Because these are two different minifiers, the output is slightly different (terser is, well,  _more terse_), but I've configured it so it's reasonably close to the old minified distfile.

I was only able to get to `rollup` v3.x; `rollup` v4.x requires Node.js v18.x.  We can upgrade to v4.x once we decide to drop Node.js v16.x support.
@boneskull boneskull added the dependencies Pull requests that update a dependency file label Oct 31, 2023
@boneskull boneskull requested a review from nzakas October 31, 2023 20:02
@boneskull boneskull self-assigned this Oct 31, 2023
@boneskull boneskull force-pushed the boneskull/rollup-upgrade branch 2 times, most recently from 8640f4f to 0a42471 Compare October 31, 2023 21:56
Copy link
Contributor

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me. Thanks.

@nzakas nzakas merged commit 26270ed into humanwhocodes:main Nov 1, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants