We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd4aeda + 6698d59 commit b6abd93Copy full SHA for b6abd93
cli/pbjs.js
@@ -194,9 +194,8 @@ exports.main = function main(args, callback) {
194
return resolved;
195
};
196
197
- // Use es6 syntax if not explicitly specified on the command line and the es6 wrapper is used
198
- if (argv.wrap === "es6" || argv.es6) {
199
- 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") {
200
argv.es6 = true;
201
}
202
0 commit comments