From f3067fa9f15b614a62f8dd8561ab87fa0ba36c22 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Sun, 2 Oct 2022 23:49:51 -0700 Subject: [PATCH] another fix of the logger check --- src/logger/logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger/logger.ts b/src/logger/logger.ts index 4a65a80..6b09c8b 100644 --- a/src/logger/logger.ts +++ b/src/logger/logger.ts @@ -106,7 +106,7 @@ async function getStaticSourceMaps(): Promise> { ) continue; // make sure .map file exists const fileBuff = await fs.readFile(file + '.map'); - if (URL && typeof Blob !== 'undefined' && typeof process !== 'object') { + if (URL && typeof Blob !== 'undefined') { // only run this stuff if we are running in a browser window const mappingsWasmBuffer = await fs.readFile( path.join(__dirname, '../../node_modules/source-map/lib/mappings.wasm'),