mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 20:44:10 +00:00
46ba1532fd
Summary: The babel plugin transform-es2015-constants was replaced by check-es2015-constants. References: T2970 rBW0a3b3b03dbcfc8d1e809a0eaf6270eec8de80763 T3053 This patch updates the babel preset to use check-es2015-constants which should be more future-proof and will receive bug fixes. Closes https://github.com/facebook/react-native/pull/6943 Reviewed By: davidaurelio Differential Revision: D3189222 Pulled By: bestander fb-gh-sync-id: a5ec23e297e1d3591d51641dd567049f4310b107 fbshipit-source-id: a5ec23e297e1d3591d51641dd567049f4310b107
45 lines
1.4 KiB
JavaScript
45 lines
1.4 KiB
JavaScript
/**
|
|
* 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',
|
|
'transform-es2015-function-name',
|
|
'transform-es2015-arrow-functions',
|
|
'transform-es2015-block-scoping',
|
|
'transform-es2015-classes',
|
|
'transform-es2015-computed-properties',
|
|
'check-es2015-constants',
|
|
'transform-es2015-destructuring',
|
|
['transform-es2015-modules-commonjs', { strict: false, allowTopLevelThis: true }],
|
|
'transform-es2015-parameters',
|
|
'transform-es2015-shorthand-properties',
|
|
'transform-es2015-spread',
|
|
'transform-es2015-template-literals',
|
|
'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 }],
|
|
require('../transforms/transform-symbol-member'),
|
|
]),
|
|
retainLines: true,
|
|
sourceMaps: false,
|
|
};
|