Skip to content

Commit

Permalink
Remove retainLines and sourceMaps options
Browse files Browse the repository at this point in the history
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 5c57601
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions babel-preset/configs/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion babel-preset/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions jest/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ module.exports = {
inlineRequires: true,
platform: '',
projectRoot: '',
retainLines: true,
},
src,
}).code;
Expand Down

0 comments on commit 5c57601

Please # to comment.