Files
meteor/packages/ecmascript/package.js
Ben Newman bb96f38d9b Update meteor-babel and typescript to latest versions.
Babel releases included in this update:
- https://github.com/babel/babel/releases/tag/v7.7.6
- https://github.com/babel/babel/releases/tag/v7.7.7
- https://github.com/babel/babel/releases/tag/v7.8.0
- https://github.com/babel/babel/releases/tag/v7.8.1
- https://github.com/babel/babel/releases/tag/v7.8.2
- https://github.com/babel/babel/releases/tag/v7.8.3

Although some of these changes won't take effect until the next Meteor
release, I intend to publish the babel-compiler, ecmascript, and
typescript changes using Meteor 1.9, so that applications can update
without waiting for Meteor 1.10.
2020-01-14 13:03:59 -05:00

43 lines
1.1 KiB
JavaScript

Package.describe({
name: 'ecmascript',
version: '0.14.1',
summary: 'Compiler plugin that supports ES2015+ in all .js files',
documentation: 'README.md'
});
Package.registerBuildPlugin({
name: 'compile-ecmascript',
use: ['babel-compiler'],
sources: ['plugin.js']
});
Package.onUse(function (api) {
api.use('isobuild:compiler-plugin@1.0.0');
api.use('babel-compiler');
// The following api.imply calls should match those in
// ../coffeescript/package.js.
api.imply('modules');
api.imply('ecmascript-runtime');
api.imply('babel-runtime');
api.imply('promise');
// Runtime support for Meteor 1.5 dynamic import(...) syntax.
api.imply('dynamic-import');
api.addFiles("ecmascript.js", "server");
api.export("ECMAScript", "server");
});
Package.onTest(function (api) {
api.use(["tinytest", "underscore"]);
api.use(["es5-shim", "ecmascript", "babel-compiler"]);
api.addFiles("runtime-tests.js");
api.addFiles("transpilation-tests.js", "server");
api.addFiles("bare-test.js");
api.addFiles("bare-test-file.js", ["client", "server"], {
bare: true
});
});