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
I Would love to see that CanJS (every single module) does named exports in addition to the default unnamed export for a better migration path forward es2020
Why
Module is a namespace. Default export often leads to function/component per file dogma and makes code less maintainable.
Interop with commonjs is broken in many cases. Ways to fight them are known.
Show me any good language with default exports. It's historical javascriptism.
const myStuff = "I am a string that represents a function or something"
module.exports = myStuff
const myStuff = "I am a string that represents a function or something"
exports.myStuff = myStuff
The text was updated successfully, but these errors were encountered:
I Would love to see that CanJS (every single module) does named exports in addition to the default unnamed export for a better migration path forward es2020
Why
The text was updated successfully, but these errors were encountered: