mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 05:15:49 +08:00
Summary: The `react.displayName` transform was added in 93b9329b75.
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
|
|
}
|