Files
meteor/packages/ecmascript/package.js
Ben Newman 095ded40b0 Add an ecmascript core package.
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.
2015-07-16 18:02:07 -04:00

18 lines
404 B
JavaScript

Package.describe({
name: 'ecmascript',
version: '0.1.0',
summary: 'Compiler plugin that supports ES2015+ in all .js files',
documentation: 'README.md'
});
Package.registerBuildPlugin({
name: 'compile-ecmascript',
use: ['babel-compiler@5.6.17'],
sources: ['plugin.js']
});
Package.onUse(function (api) {
api.use('isobuild:compiler-plugin@1.0.0');
api.imply('babel-runtime@0.1.0');
});