Skip to content

Commit

Permalink
Backport PR #10507: Check to make sure process.argv exists before usi…
Browse files Browse the repository at this point in the history
…ng it. (#10520)

Co-authored-by: Jason Grout <jasongrout@users.noreply.github.com>
  • Loading branch information
meeseeksmachine and jasongrout committed Jul 1, 2021
1 parent 4a51c40 commit 0318d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/coreutils/src/pageconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export namespace PageConfig {
}
}
// Otherwise use CLI if given.
if (!found && typeof process !== 'undefined') {
if (!found && typeof process !== 'undefined' && process.argv) {
try {
const cli = minimist(process.argv.slice(2));
const path: any = require('path');
Expand Down

0 comments on commit 0318d49

Please sign in to comment.