mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 12:34:17 +00:00
974ec059e8
Summary: The `react.displayName` transform was added in 93b9329b758cde3e921b26e11ba91d9700d2a06d. That diff missed to update the `.babelrc` where the comment says it should stay in sync (I'm not sure where it's used though). I added a comment in the other direction so this can be prevented in the future. I also updated the `cacheVersion` so we actually transform the code again to add the missing displayName properties to unchanged components. Closes https://github.com/facebook/react-native/pull/2905 Reviewed By: @vjeux Differential Revision: D2473447 Pulled By: @kassens
28 lines
624 B
Plaintext
28 lines
624 B
Plaintext
// Keep in sync with packager/transformer.js
|
|
{
|
|
"retainLines": true,
|
|
"compact": true,
|
|
"comments": false,
|
|
"whitelist": [
|
|
"es6.arrowFunctions",
|
|
"es6.blockScoping",
|
|
// This is the only place where we differ from transformer.js
|
|
"es6.constants",
|
|
"es6.classes",
|
|
"es6.destructuring",
|
|
"es6.parameters",
|
|
"es6.properties.computed",
|
|
"es6.properties.shorthand",
|
|
"es6.spread",
|
|
"es6.templateLiterals",
|
|
"es7.asyncFunctions",
|
|
"es7.trailingFunctionCommas",
|
|
"es7.objectRestSpread",
|
|
"flow",
|
|
"react",
|
|
"react.displayName",
|
|
"regenerator"
|
|
],
|
|
"sourceMaps": false
|
|
}
|