Skip to content

Commit 07aba93

Browse files
cardosowjhsf
andauthored
fix(engine-core): process is not defined (#5255)
* 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]>
1 parent 4aed15e commit 07aba93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@lwc/engine-core/src/framework/check-version-mismatch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function checkVersionMismatch(
3838
) {
3939
const versionMatcher = func.toString().match(LWC_VERSION_COMMENT_REGEX);
4040
if (!isNull(versionMatcher) && !warned) {
41-
if (process.env.SKIP_LWC_VERSION_MISMATCH_CHECK === 'true') {
41+
if (typeof process === 'object' && process.env.SKIP_LWC_VERSION_MISMATCH_CHECK === 'true') {
4242
warned = true; // skip printing out version mismatch errors when env var is set
4343
return;
4444
}

0 commit comments

Comments
 (0)