Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One short note on source maps #2

Open
dcodeIO opened this issue Feb 26, 2018 · 3 comments
Open

One short note on source maps #2

dcodeIO opened this issue Feb 26, 2018 · 3 comments

Comments

@dcodeIO
Copy link

dcodeIO commented Feb 26, 2018

Just so you are aware: Source map support currently requires that either the source map URL in the .wasm is absolute, or compileStreaming respectively instantiateStreaming are used. [ref]

@happybang
Copy link
Contributor

I can only check the absolute URL for SourceMap is usefull , but the relative URL for sourceMap is not usefull in my firefox(v58.2) ,it's the same as your demo。it seems like unsupported by FF.

@dcodeIO
Copy link
Author

dcodeIO commented Mar 3, 2018

Yes, relative source map URLs require the use of compileStreaming respectively instantiateStreaming.

@happybang
Copy link
Contributor

happybang commented Mar 3, 2018

i tried instantiateStreaming again like this:

 WebAssembly.instantiateStreaming(fetch(${publicPath}))
        .then(function(obj){
            return obj.instance.exports;
        });

but the FF still warn like this:

Sourcemap Error:TypeError: test.wasm.map is not a valid URL.
Source URL:wasm:http://192.168.1.106:3022/static/js/index.js:3317cec8b3f5c25c
SourcemapURL:test.wasm.map

is there something i ignore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants