Skip to content

Commit 9c4b476

Browse files
corbtfacebook-github-bot-3
authored andcommitted
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 #3175 Reviewed By: @​svcscm Differential Revision: D2498360 Pulled By: @vjeux
1 parent 31a0c95 commit 9c4b476

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

packager/react-packager/.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"es6.classes",
1010
"es6.constants",
1111
"es6.destructuring",
12+
"es6.modules",
1213
"es6.parameters",
1314
"es6.properties.computed",
1415
"es6.properties.shorthand",

packager/transformer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function transform(src, filename, options) {
3737
'es6.classes',
3838
'es6.constants',
3939
'es6.destructuring',
40+
'es6.modules',
4041
'es6.parameters',
4142
'es6.properties.computed',
4243
'es6.properties.shorthand',

0 commit comments

Comments
 (0)