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
ES6 modules are specified to always be in strict mode, regardless of if there is a "use strict" directive. Every transpiler I've come across, from 6to5 to ES6 Module Transpiler to Traceur all add that statement, without any option to omit it. Something like a boolean impliedstrict could be useful here, as a relaxing option.
The "strict by default" for modules has been in the spec for quite some time, probably a lot longer than the import/export syntax itself.
The text was updated successfully, but these errors were encountered:
ES6 modules are specified to always be in strict mode, regardless of if there is a
"use strict"
directive. Every transpiler I've come across, from 6to5 to ES6 Module Transpiler to Traceur all add that statement, without any option to omit it. Something like a booleanimpliedstrict
could be useful here, as a relaxing option.The "strict by default" for modules has been in the spec for quite some time, probably a lot longer than the import/export syntax itself.
The text was updated successfully, but these errors were encountered: