enable es6 module syntax

Summary: This is an updated copy of #1993, which was approved by @vjeux but hasn't been rebased. It whitelists the es6 module syntax and updates the JS Environment docs to match. cc @ide @​hkjorgensenCloses https://github.com/facebook/react-native/pull/3175

Reviewed By: @​svcscm

Differential Revision: D2498360

Pulled By: @vjeux
This commit is contained in:
Kyle Corbitt 2015-10-01 10:54:40 -07:00 committed by facebook-github-bot-3
parent 31a0c95f69
commit 9c4b476679
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@
"es6.classes", "es6.classes",
"es6.constants", "es6.constants",
"es6.destructuring", "es6.destructuring",
"es6.modules",
"es6.parameters", "es6.parameters",
"es6.properties.computed", "es6.properties.computed",
"es6.properties.shorthand", "es6.properties.shorthand",

View File

@ -37,6 +37,7 @@ function transform(src, filename, options) {
'es6.classes', 'es6.classes',
'es6.constants', 'es6.constants',
'es6.destructuring', 'es6.destructuring',
'es6.modules',
'es6.parameters', 'es6.parameters',
'es6.properties.computed', 'es6.properties.computed',
'es6.properties.shorthand', 'es6.properties.shorthand',