Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[fix] change process to globalThis.process (#2865)

Igor Dykhtac7d3777fc1d3
diff --git a/src/utils/src/utils.ts b/src/utils/src/utils.ts
index 1e163de34..f68ab0961 100644
--- a/src/utils/src/utils.ts
+++ b/src/utils/src/utils.ts
@@ -205,7 +205,7 @@ export function hasPortableWidth(breakPointValues: {palm: number; desk: number})
}
export function isTest(): boolean {
- return typeof process !== 'undefined' && process?.env?.NODE_ENV === 'test';
+ return globalThis.process?.env?.NODE_ENV === 'test';
}
/**