source-map-explorer icon indicating copy to clipboard operation
source-map-explorer copied to clipboard

Support node 18+

Open NateRadebaugh opened this issue 2 years ago • 0 comments

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

  • OS: macOS Ventura 13.5.1
  • source-map-explorer Version 2.5.3

NateRadebaugh avatar Sep 04 '23 22:09 NateRadebaugh