mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
This package will be installed by default for all new apps and packages.
Passing the {transpile:false} option to api.addFiles makes it possible for
a dependent package to specify that some files should not be processed
through babel-compiler.
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');
});