another fix of the logger check

This commit is contained in:
Michael Peters 2022-10-02 23:49:51 -07:00
parent 487b32137e
commit f3067fa9f1

View File

@ -106,7 +106,7 @@ async function getStaticSourceMaps(): Promise<Map<string, SourceMapConsumer>> {
)
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'),