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 committed Jun 18, 2020
1 parent 7fbc79f commit 6698d59
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cli/pbjs.js
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 6698d59

Please sign in to comment.