-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(bundling): upgrade rollup to v4 #22656
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit d442b33. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
e4ebb05
to
d3e208b
Compare
@@ -172,7 +174,7 @@ describe('Rollup Plugin', () => { | |||
); | |||
updateFile(`libs/test/package.json`, JSON.stringify({ name: 'test' })); | |||
updateFile( | |||
`libs/test/rollup.config.js`, | |||
`libs/test/rollup.config.mjs`, |
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.
Rollup v2 must have been doing something to process the file, but with v4 it is using Node resolution so the file must be .mjs
or the workspace needs type: 'module'
in package.json
.
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
This PR bumps Rollup to v4, and updates necessary plugins to support the update. The previous
rollup-plugin-peer-deps-external
plugin is removed since it is no longer needed.We should wait until Nx 19 to merge this since this could be a breaking change if users have custom Rollup plugins that are incompatible with Rollup v4.
Changes:
@rollup/plugin-url
and@svgr/rollup
Current Behavior
Expected Behavior
Related Issue(s)
Fixes #22604