You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Between 1.12.5 and 1.13.0, module stopped being avoided as a variable name. Compare this REPL and this one. The code produced in the REPL doesn't cause an error in Node, but if you bundle with preferConst: true, it results in const module = 42;, which Node does complain about as being a variable getting redeclared.
Expected Behavior
module should continue to be deconflicted from the Node built-in, at least in preferConst mode.
Actual Behavior
Rollup will output code like const module = 42;, which Node doesn't like.
The text was updated successfully, but these errors were encountered:
How Do We Reproduce?
Between 1.12.5 and 1.13.0,
module
stopped being avoided as a variable name. Compare this REPL and this one. The code produced in the REPL doesn't cause an error in Node, but if you bundle withpreferConst: true
, it results inconst module = 42;
, which Node does complain about as being a variable getting redeclared.Expected Behavior
module
should continue to be deconflicted from the Node built-in, at least inpreferConst
mode.Actual Behavior
Rollup will output code like
const module = 42;
, which Node doesn't like.The text was updated successfully, but these errors were encountered: