Fix module option parsing of jsx command
Paul O’Shannessy committed
Mar 11, 2015 at 14:26 UTC
c4a2e4d414da8a4a0d2fc3c1f9a80175b0c4098d
2 files changed
+3
-3
bin/jsx
+1
-1
@@ -44,7 +44,7 @@ require('commoner').version(
44
sourceMap: this.options.sourceMapInline,
45
stripTypes: this.options.stripTypes,
46
es6module: this.options.es6module,
47
- nonStrictEs6Module: this.options.nonStrictEs6Module,
47
+ nonStrictEs6module: this.options.nonStrictEs6module,
48
target: this.options.target
49
};
50
return transform(source, options);
main.js
+2
-2
@@ -60,8 +60,8 @@ function processOptions(opts) {
60
if (opts.es6module) {
61
options.sourceType = 'module';
62
}
63
- if (opts.nonStrictEs6Module) {
64
- options.sourceType = 'nonStrict6Module';
63
+ if (opts.nonStrictEs6module) {
64
+ options.sourceType = 'nonStrictModule';
65
}
66
67
// Instead of doing any fancy validation, only look for 'es3'. If we have