Files
meteor/tools/tests
Ben Newman 7c63a8e704 Allow custom Babel presets and plugins via package.json.
When the babel-compiler package is processing files, it will now read
their package.json files looking for a "babel" section with "presets" or
"plugins" fields. If found, these presets or plugins will be appended to
the existing babelOptions.presets or babelOptions.plugins arrays.

Note that no other Babel options are currently supported, and the
"babel-preset-meteor" preset cannot be removed, though additional presets
and/or plugins can be added to it. This is by design: Meteor cannot
support your configuration it uses babel-preset-meteor, at least.

The preset and/or plugin modules listed in package.json must be installed
locally somewhere such that the given file can import them. If they are
top-level identifiers, they will be prefixed with "babel-plugin-" or
"babel-preset-", the same as Babel does it. Otherwise they will be
required as-is, so that you can implement your own Babel plugins locally,
rather than always using plugins installed from npm.

See the included tests for a concrete example.

Fixes #6351.
2016-05-18 16:37:38 -04:00
..
2016-03-20 12:30:31 +01:00
2016-03-17 21:20:12 +01:00
2016-03-17 16:48:25 +01:00
2016-03-17 16:48:25 +01:00
2016-03-17 16:48:25 +01:00
2015-08-06 16:39:00 -07:00
2016-03-18 20:40:57 +01:00
2016-05-13 15:09:03 -07:00