Permalink
Browse files

Remove `retainLines` and `sourceMaps` options

Summary:
`retainLines` is no longer necessary with the much improved source map generation.
`sourceMaps` is handled by the transformer itself.

Reviewed By: cpojer

Differential Revision: D5237103

fbshipit-source-id: e5c6bf5aa9d553fce9c3f4d59b3ea0057d45cfdc
  • Loading branch information...
davidaurelio authored and facebook-github-bot committed Jun 14, 2017
1 parent 534bbfa commit 5c576017693a2efd37d656a5e263d64692da982a
Showing with 2 additions and 3 deletions.
  1. +0 −2 babel-preset/configs/main.js
  2. +1 −1 babel-preset/package.json
  3. +1 −0 jest/preprocessor.js
@@ -40,8 +40,6 @@ var preset = {
['transform-es2015-for-of', { loose: true }],
require('../transforms/transform-symbol-member'),
]),
retainLines: true,
sourceMaps: false,
};
var env = process.env.BABEL_ENV || process.env.NODE_ENV;
@@ -1,6 +1,6 @@
{
"name": "babel-preset-react-native",
"version": "1.9.2",
"version": "2.0.0-alpha.1",
"description": "Babel preset for React Native applications",
"main": "index.js",
"repository": "https://github.com/facebook/react-native/tree/master/babel-preset",
View
@@ -39,6 +39,7 @@ module.exports = {
inlineRequires: true,
platform: '',
projectRoot: '',
retainLines: true,
},
src,
}).code;

0 comments on commit 5c57601

Please sign in to comment.