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
{{ message }}
Repository navigation
const x = require("m") should create an alias symbol #25533
The in-file type of commonjs modules is usually wrong, so I'll have to fix bugs related to that before aliasing will really make sense. I will look at #25621 first.
Turns out github didn't recognise that the "fix #xxxx" syntax occurred in a conditional clause and unconditionally closed this issue. :) Thanks for re-opening.
That's only correct if the module.exports is never reassigned...... but that's the best we can do in ES modules. That is also a limitation of node's --experimentalModules.
Activity
sandersn commentedon Jul 16, 2018
The in-file type of commonjs modules is usually wrong, so I'll have to fix bugs related to that before aliasing will really make sense. I will look at #25621 first.
sandersn commentedon Jul 20, 2018
Turns out github didn't recognise that the "fix #xxxx" syntax occurred in a conditional clause and unconditionally closed this issue. :) Thanks for re-opening.
3 remaining items
Jessidhia commentedon Jan 17, 2019
That's only correct if the
module.exportsis never reassigned...... but that's the best we can do in ES modules. That is also a limitation of node's--experimentalModules.sandersn commentedon Mar 13, 2019
Note that the type of
module.exportsinside a module is now correctly checked, which unblocks fixing this issue.