Merge pull request #3381 from zpao/jsx-nonstrictmodule

Fix module option parsing of jsx command
This commit is contained in:
Paul O’Shannessy
2015-03-16 13:24:35 -07:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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);
+2 -2
View File
@@ -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