-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Rollup Version
4.11.0
Operating System (or Browser)
any
Node Version (if applicable)
No response
Link To Reproduction
Expected Behaviour
Rollup bundles successfully. See 4.10.0 reproduction that demonstrates expected behavior: https://rollupjs.org/repl/?version=4.10.0&shareable=JTdCJTIyZXhhbXBsZSUyMiUzQW51bGwlMkMlMjJtb2R1bGVzJTIyJTNBJTVCJTdCJTIyY29kZSUyMiUzQSUyMiUyRiUyRiUyME5BTUVEJTIwRVhQT1JUUyU1Q24lMkYlMkYlMjBUaGVyZSUyMGFyZSUyMG1hbnklMjB3YXlzJTIwdG8lMjBleHBvcnQlMjBiaW5kaW5ncyU1Q24lMkYlMkYlMjBmcm9tJTIwYW4lMjBFUzIwMTUlMjBtb2R1bGUlNUNuZXhwb3J0JTIwY29uc3QlMjBmb28lMjAlM0QlMjAxJTNCJTVDbmZvbyUyMCUzRCUyMDIlMjIlMkMlMjJpc0VudHJ5JTIyJTNBdHJ1ZSUyQyUyMm5hbWUlMjIlM0ElMjJtYWluLmpzJTIyJTdEJTJDJTdCJTIyY29kZSUyMiUzQSUyMiUyMiUyQyUyMmlzRW50cnklMjIlM0FmYWxzZSUyQyUyMm5hbWUlMjIlM0ElMjJxdXguanMlMjIlN0QlNUQlMkMlMjJvcHRpb25zJTIyJTNBJTdCJTdEJTdE
Actual Behaviour
Rollup fails with:
RollupError: Cannot reassign a variable declared with
const /main.js (5:0) 3: // from an ES2015 module 4: export const foo = 1; 5: foo = 2
- This is a breaking change that was merged as a non-breaking change in this PR: Add const reassign rule #5388
- This was an unannounced breaking change and there were no release notes
- Please rollback this breaking change as it is preventing upgrade to this or any subsequent rollup version