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 Oct 24, 2021. It is now read-only.
While it doesn't really cause problems for anyone, the guide should probably mention somewhere that the implied strictness in ES2015 modules, as specified by ES2015 spec, is (currently/intentionally) off by default in Meteor.
This is done on purpose right now to maintain the highest level of reverse compatibility with pre-1.3 versions. See related issue here: meteor/meteor#6166 and commits meteor/meteor@ae90250 & meteor/babel@823ac57 (which intentionally turned it off) and bugs here meteor/meteor#6072meteor/meteor#6086 (not to mention all the other stuff that could be broken if this was changed right now).
If developers place "use strict"; at the top of their modules, it will still be enabled, but the impression that it is on automatically in modules is not true. Alternatively, as of 1.3.3, users will be able to enforce their own rule on this (overriding Meteor's default) with .babelrc, thanks to meteor/meteor@49a60f1.
We are going to make many updates to the guide in the next weeks and it's better to focus on issues with recent activity. If you think this issue is still relevant please open a new one.
While it doesn't really cause problems for anyone, the guide should probably mention somewhere that the implied strictness in ES2015 modules, as specified by ES2015 spec, is (currently/intentionally) off by default in Meteor.
As I wrote in meteor/meteor#7050 (comment):
If developers place
"use strict";
at the top of their modules, it will still be enabled, but the impression that it is on automatically in modules is not true. Alternatively, as of 1.3.3, users will be able to enforce their own rule on this (overriding Meteor's default) with.babelrc
, thanks to meteor/meteor@49a60f1.ES2015 Modules should probably (briefly) mention this and possibly Code Style.
The text was updated successfully, but these errors were encountered: