diff --git a/bin/jsx b/bin/jsx index ac1fa1470c..616d7afe40 100755 --- a/bin/jsx +++ b/bin/jsx @@ -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); diff --git a/main.js b/main.js index 52d09eeb16..f15d44244c 100644 --- a/main.js +++ b/main.js @@ -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