parcel-bundler/source-map

Missing file for browser wasm in distributed npm package

3cp opened this issue · 5 comments

3cp commented

I tried to bundle @parcel/source-map in an app to run in browser,

Cannot find module '../parcel_sourcemap_wasm/dist-web/parcel_sourcemap_wasm.js' from
'...../node_modules/@parcel/source-map/dist/wasm-bindings-web.js'

The file parcel_sourcemap_wasm/dist-web/parcel_sourcemap_wasm.js was not in the @parcel/source-map npm package current version v2.0.2.

It does contain the Rust source code in parcel_sourcemap_wasm/src. Is the compiled js code missed?

3cp commented

BTW, I am seeing over-all 5x (in nodejs env) performance improvement in my lib, by just replacing mozilla's source-map with @parcel/source-map.

Awesome work on this source map tool, guys!

3cp commented

The latest v2.0.3 still has the same problem somehow.
https://unpkg.com/browse/@parcel/source-map@2.0.3/parcel_sourcemap_wasm/

3cp commented

Sorry, I didn't realise this fix is not released yet.

Released 2.0.4 which includes wasm files