Open
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.