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

chore: use Rollup 2 #12010

Merged
merged 6 commits into from Aug 26, 2020
Merged

chore: use Rollup 2 #12010

merged 6 commits into from Aug 26, 2020

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Aug 26, 2020

Q                       A
License MIT

Update to Rollup 2 and related plugins.

@JLHwung JLHwung added the PR: Internal 🏠 A type of pull request used for our changelog categories label Aug 26, 2020
@babel-bot
Copy link
Collaborator

babel-bot commented Aug 26, 2020

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/27982/

@nicolo-ribaudo
Copy link
Member

I approved without noticing the failing build - why was the downgrade necessary?

@@ -153,17 +152,13 @@ function buildRollup(packages) {
// Rollup doesn't read export maps, so it loads the cjs fallback
"packages/babel-compat-data/*.js",
],
namedExports: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

namedExports is removed per suggestions from @rollup/plugin-commonjs@13.

@JLHwung
Copy link
Contributor Author

JLHwung commented Aug 26, 2020

@nicolo-ribaudo

Test fails on commonjs@14 and build fails on commonjs@15.

I am preparing an upstream issue on build fails on commonjs@15. Before the upstream issue is resolved, let's pin commonjs to 13.0.2.

const rollupNodeGlobals = require("rollup-plugin-node-globals");
const rollupNodeResolve = require("rollup-plugin-node-resolve");
const rollupReplace = require("rollup-plugin-replace");
const rollupNodePolyfills = require("rollup-plugin-node-polyfills");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

rollup-plugin-node-polyfills replaces both rollup-plugin-node-globals and rollup-plugin-node-builtins. This has been done on v8 branch and now can be backported since we are not building on node.js 6.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 26, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 4f1fabb:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

Copy link
Member

@existentialism existentialism left a comment

Choose a reason for hiding this comment

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

👍

@@ -27,7 +27,11 @@
"@babel/preset-flow": "^7.10.4",
"@babel/register": "^7.10.5",
"@babel/runtime": "^7.11.0",
"@rollup/plugin-json": "4.0.1",
"@rollup/plugin-babel": "^5.2.0",
"@rollup/plugin-commonjs": "^13.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The latest commonjs is 15, however I have to pin to 13 due to an upstream issue: rollup/plugins#557

@JLHwung JLHwung merged commit 8d59ff6 into babel:main Aug 26, 2020
@JLHwung JLHwung deleted the rollup-2 branch August 26, 2020 22:20
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Nov 26, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants