You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to make read-wasm abstract in order to allow users to implement their own version ?
I encounter some difficulties to bundle source-map in server-side code generated through webpack.
FYI: I managed to create a webpack bundle that includes the javascript part of source-map and loads mappings.wasm from a separate file. Here's the relevant portion from my webpack.config.js:
The __dirname: false part tells webpack that __dirname should have its regular node.js behavior (instead of evaluating to '/', which is the webpack default) - that's all that is needed for the bundle to successfully load mappings.wasm.
Still, it would be nicer if mappings.wasm could be made part of the bundle (using wasm-loader). Using webpack for node.js projects is becoming increasingly popular, so this shouldn't require a hack like the one shown above.
source-map/lib/wasm.js
Line 1 in 11cecea
Is it possible to make
read-wasm
abstract in order to allow users to implement their own version ?I encounter some difficulties to bundle
source-map
in server-side code generated through webpack.source-map/lib/read-wasm.js
Lines 11 to 12 in 11cecea
has no sense in this context.
Thanks.
--edit--
Maybe you can allow #339 for node.js ?
The text was updated successfully, but these errors were encountered: