-
Notifications
You must be signed in to change notification settings - Fork 563
Open
Labels
Bugthing that needs fixingthing that needs fixingsemver:majorbackwards-incompatible breaking changesbackwards-incompatible breaking changes
Milestone
Description
What / Why
Rollup breaks this package when bundling it.
When
Since 2021-07-05 when @rollup/plugin-commonjs 19.0.0 has been released.
How
Current Behavior
semver.satisfies always returns false after bundling with Rollup.
Steps to Reproduce
- Clone https://github.com/thorn0/rollup-commonjs-semver-issue and install the dependencies.
- Try running unbundled
input.js. It works correctly. - Try running bundled
output.js. Its output is incorrect. - You can perform the bundling yourself by running
index.mjs.
Expected Behavior
Bundled and unbundled code should work the same way.
References
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingsemver:majorbackwards-incompatible breaking changesbackwards-incompatible breaking changes