Skip to content

Commit

Permalink
fix(engine-core): process is not defined (#5255)
Browse files Browse the repository at this point in the history
* fix(engine-core): process is not defined

* fix: check typeof process

* fix(engine-core): check IS_BROWSER

Co-authored-by: Will Harney <[email protected]>

* fix: should be || not &&

* fix: revert to using typeof process

* chore: remove unneeded change

---------

Co-authored-by: Will Harney <[email protected]>
  • Loading branch information
cardoso and wjhsf authored Mar 4, 2025
1 parent 4aed15e commit 07aba93
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function checkVersionMismatch(
) {
const versionMatcher = func.toString().match(LWC_VERSION_COMMENT_REGEX);
if (!isNull(versionMatcher) && !warned) {
if (process.env.SKIP_LWC_VERSION_MISMATCH_CHECK === 'true') {
if (typeof process === 'object' && process.env.SKIP_LWC_VERSION_MISMATCH_CHECK === 'true') {
warned = true; // skip printing out version mismatch errors when env var is set
return;
}
Expand Down

0 comments on commit 07aba93

Please sign in to comment.