Use absolute locations for plugins and presets in packager babel config

Reviewed By: davidaurelio

Differential Revision: D5044244

fbshipit-source-id: ab1af28d0158c22d0426a7a3b3f1bb0a63abac4e
This commit is contained in:
Sebastian McKenzie 2017-05-11 06:37:32 -07:00 committed by Facebook Github Bot
parent 01460873da
commit c15a6b6202
1 changed files with 2 additions and 2 deletions

View File

@ -19,13 +19,13 @@ function registerOnly(onlyList) {
function config(onlyList) {
_only = _only.concat(onlyList);
return {
presets: ['es2015-node'],
presets: [require('babel-preset-es2015-node')],
plugins: [
'transform-flow-strip-types',
'syntax-trailing-function-commas',
'transform-object-rest-spread',
'transform-async-to-generator',
],
].map(pluginName => require(`babel-plugin-${pluginName}`)),
only: _only,
retainLines: true,
sourceMaps: 'inline',