Skip to content

Commit

Permalink
Don't imply --wrap es6 from --es6
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 authored and taylorcode committed Oct 16, 2020
1 parent df2f94b commit d263bea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cli/pbjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,8 @@ exports.main = function main(args, callback) {
return resolved;
};

// Use es6 syntax if not explicitly specified on the command line and the es6 wrapper is used
if (argv.wrap === "es6" || argv.es6) {
argv.wrap = "es6";
// `--wrap es6` implies `--es6` but not the other way around. You can still use e.g. `--es6 --wrap commonjs`
if (argv.wrap === "es6") {
argv.es6 = true;
}

Expand Down

0 comments on commit d263bea

Please sign in to comment.