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

fix: throw error if Rollup version is too old #2506

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

nolanlawson
Copy link
Collaborator

Details

Fixes #2505

This PR updates the min semver in the peerDependencies Rollup version for @lwc/rollup-plugin, and improves the error message if the Rollup version is too old.

Does this PR introduce breaking changes?

  • No, it does not introduce breaking changes.

@nolanlawson
Copy link
Collaborator Author

I tested this manually by downgrading Rollup, and it throws an error like:

@lwc/rollup-plugin requires Rollup version ^2.29.0 (found: 2.28.0). Please update Rollup.

},
"peerDependencies": {
"rollup": "^1.2.0||^2.0.0"
"rollup": "^2.29.0"
Copy link
Member

Choose a reason for hiding this comment

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

Is v2.29.0 the earliest version of rollup that we can support in the 2.x range?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I think so. The meta context was added with this PR which landed in the 2.29.0 release.

},
"peerDependencies": {
"rollup": "^1.2.0||^2.0.0"
"rollup": "^2.29.0"
Copy link
Member

Choose a reason for hiding this comment

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

Yes, I think so. The meta context was added with this PR which landed in the 2.29.0 release.

@nolanlawson nolanlawson merged commit a6d45ef into master Sep 28, 2021
@nolanlawson nolanlawson deleted the nolan/rollup-plugin-semver branch September 28, 2021 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@lwc/rollup-plugin fails to build on Rollup <v2.29.0
4 participants