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 }}
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
Which will cause a SyntaxErrors on var delete = 'foo'; and export { delete };
Since it's impossible to do import { delete } from './mycjsmodule' anyways, it would be safe to not create named exports for reserved-keyword properties of module.exports. EDIT: Apparently it's possible to import a reserved keyword like that, as long as it's destructured, at least according to babel! Not sure if that's desired behavior.
The text was updated successfully, but these errors were encountered:
Consider:
This will get transpiled into:
Which will cause a SyntaxErrors on
var delete = 'foo';
andexport { delete };
Since it's impossible to doEDIT: Apparently it's possible to import a reserved keyword like that, as long as it's destructured, at least according to babel! Not sure if that's desired behavior.import { delete } from './mycjsmodule'
anyways, it would be safe to not create named exports for reserved-keyword properties of module.exports.The text was updated successfully, but these errors were encountered: