mirror of
https://github.com/status-im/metro.git
synced 2025-01-10 11:06:06 +00:00
7b1ffed4e7
Summary: - Enables async/await in .babelrc and transformer.js - Adds regenerator to package.json. Users still need to explicitly require the regenerator runtime -- this is so that you only pay for what you use. - Update AsyncStorage examples in UIExplorer to use async/await - Update promise tests in UIExplorer to use async/await in addition to the promise API Closes https://github.com/facebook/react-native/pull/1765 Github Author: James Ide <ide@jameside.com>
27 lines
604 B
Plaintext
27 lines
604 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.rest",
|
|
"es6.properties.computed",
|
|
"es6.properties.shorthand",
|
|
"es6.spread",
|
|
"es6.templateLiterals",
|
|
"es7.asyncFunctions",
|
|
"es7.trailingFunctionCommas",
|
|
"es7.objectRestSpread",
|
|
"flow",
|
|
"react",
|
|
"regenerator"
|
|
],
|
|
"sourceMaps": false
|
|
}
|