2016-02-03 16:14:38 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var resolvePlugins = require('../lib/resolvePlugins');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
comments: false,
|
|
|
|
compact: true,
|
|
|
|
plugins: resolvePlugins([
|
|
|
|
'syntax-async-functions',
|
|
|
|
'syntax-class-properties',
|
|
|
|
'syntax-trailing-function-commas',
|
|
|
|
'transform-class-properties',
|
2016-04-13 14:40:47 +00:00
|
|
|
'transform-es2015-function-name',
|
2016-02-03 16:14:38 +00:00
|
|
|
'transform-es2015-arrow-functions',
|
|
|
|
'transform-es2015-block-scoping',
|
|
|
|
'transform-es2015-classes',
|
|
|
|
'transform-es2015-computed-properties',
|
2016-05-03 13:42:08 +00:00
|
|
|
'check-es2015-constants',
|
2016-02-03 16:14:38 +00:00
|
|
|
'transform-es2015-destructuring',
|
2016-03-29 14:25:46 +00:00
|
|
|
['transform-es2015-modules-commonjs', { strict: false, allowTopLevelThis: true }],
|
2016-02-03 16:14:38 +00:00
|
|
|
'transform-es2015-parameters',
|
|
|
|
'transform-es2015-shorthand-properties',
|
|
|
|
'transform-es2015-spread',
|
|
|
|
'transform-es2015-template-literals',
|
2016-05-26 20:36:31 +00:00
|
|
|
'transform-es2015-literals',
|
2016-02-03 16:14:38 +00:00
|
|
|
'transform-flow-strip-types',
|
|
|
|
'transform-object-assign',
|
|
|
|
'transform-object-rest-spread',
|
|
|
|
'transform-react-display-name',
|
|
|
|
'transform-react-jsx',
|
|
|
|
'transform-regenerator',
|
|
|
|
['transform-es2015-for-of', { loose: true }],
|
2016-02-08 23:00:42 +00:00
|
|
|
require('../transforms/transform-symbol-member'),
|
2016-02-03 16:14:38 +00:00
|
|
|
]),
|
2016-05-18 19:32:20 +00:00
|
|
|
env: {
|
|
|
|
development: {
|
|
|
|
plugins: resolvePlugins(['transform-react-jsx-source']),
|
|
|
|
},
|
|
|
|
},
|
2016-02-03 16:14:38 +00:00
|
|
|
retainLines: true,
|
|
|
|
sourceMaps: false,
|
|
|
|
};
|