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.
18 lines
404 B
JavaScript
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');
|
|
});
|