oblador / react-native-esbuild

Fast bundler and dev server for react-native using esbuild
MIT License
595 stars 11 forks source link

source-map environment detection bug #19

Closed darasus closed 2 years ago

darasus commented 2 years ago

source-map version 0.7.3 has buggy environment detection that causes this error:

Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer
start:packager     >     at readWasm (.../node_modules/react-native-esbuild/node_modules/source-map/lib/read-wasm.js:8:13)
start:packager     >     at wasm (.../node_modules/react-native-esbuild/node_modules/source-map/lib/wasm.js:25:16)
start:packager     >     at /Users/.../node_modules/react-native-esbuild/node_modules/source-map/lib/source-map-consumer.js:264:14
start:packager     >     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

The fix would be to bump version to 0.7.4 see original issue