danvk / source-map-explorer

Analyze and debug space usage through source maps
Apache License 2.0
3.81k stars 119 forks source link

Support node 18+ #247

Open NateRadebaugh opened 11 months ago

NateRadebaugh commented 11 months ago

Description Running npx source-map-explorer ./dist/main*.js files in node 18.x but works in node 16.x

Steps to reproduce

  1. Go to a project you want to analyze
  2. Run npx source-map-explorer in node 18.x
  3. See error:
    • You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer

Expected behavior Explorer should work in both node 16 and newer 18.x current version

Environment