Files
meteor/packages/ecmascript
Ben Newman c2d8a1b6c4 Upgrade meteor-babel and enable jscript plugin for client-side code.
The jscript plugin works around various limitations of older Internet
Explorer versions, in particular those described here:
http://kiro.me/blog/nfe_dilemma.html
2015-07-23 14:39:18 -04:00
..
2015-07-22 23:19:11 -07:00
2015-07-16 18:02:07 -04:00

The ecmascript package registers a compiler plugin that transpiles ECMAScript 2015+ to ECMAScript 5 (standard JS) in all .js files. By default, this package is pre-installed for all new apps and packages.

To add this package to an existing app, run the following command from your app directory:

meteor add ecmascript

To add the ecmascript package to an existing package, include the statement api.use('ecmascript'); in the Package.onUse callback in your package.js file:

Package.onUse(function (api) {
  api.use('ecmascript');
});