Skip to content

Commit fcb3cf9

Browse files
committed
fix: check if module is defined
1 parent 22c8a92 commit fcb3cf9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/engine/Source/Core/buildModuleUrl.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function getCesiumBaseUrl() {
4141
let baseUrlString;
4242
if (typeof CESIUM_BASE_URL !== "undefined") {
4343
baseUrlString = CESIUM_BASE_URL;
44-
} else if (defined(import.meta?.url)) {
44+
} else if (typeof import.meta !== "undefined" && defined(import.meta.url)) {
4545
// ESM
4646
baseUrlString = getAbsoluteUri(".", import.meta.url);
4747
} else if (

0 commit comments

Comments
 (0)