mozilla/source-map

Broken in Node.js v18.

Qard opened this issue ยท 3 comments

Qard commented

Apparently this module environment detects the browser by looking for the "fetch" function but fetch is now available in Node.js v18. It no longer works in Node.js because it thinks it's a browser. ๐Ÿ˜

Reading through terser/terser#1164 it seems Node.js detection was already fixed years ago back in 2018 but never released. Looks like issue #452 is about publishing a new release.

Duplicate of #432 / #452

This is fixed in source-map@0.7.4.