mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #3381 from zpao/jsx-nonstrictmodule
Fix module option parsing of jsx command
This commit is contained in:
@@ -44,7 +44,7 @@ require('commoner').version(
|
||||
sourceMap: this.options.sourceMapInline,
|
||||
stripTypes: this.options.stripTypes,
|
||||
es6module: this.options.es6module,
|
||||
nonStrictEs6Module: this.options.nonStrictEs6Module,
|
||||
nonStrictEs6module: this.options.nonStrictEs6module,
|
||||
target: this.options.target
|
||||
};
|
||||
return transform(source, options);
|
||||
|
||||
@@ -60,8 +60,8 @@ function processOptions(opts) {
|
||||
if (opts.es6module) {
|
||||
options.sourceType = 'module';
|
||||
}
|
||||
if (opts.nonStrictEs6Module) {
|
||||
options.sourceType = 'nonStrict6Module';
|
||||
if (opts.nonStrictEs6module) {
|
||||
options.sourceType = 'nonStrictModule';
|
||||
}
|
||||
|
||||
// Instead of doing any fancy validation, only look for 'es3'. If we have
|
||||
|
||||
Reference in New Issue
Block a user