libjass
libjass copied to clipboard
Current build breaks sourcemaps in older browsers
right now, the unminified build libjass.js has sourcemap url information at the end of the file,
//# sourceMappingURL=libjass.js.map
This confuses the some old browsers (Samsung Tizen SDK). Inspector will think that's where it should get the sourcemap from and if it fails to load (404) it'll give up on loading anymore sourcemaps for the rest of the app, practically nuking the sourcemaps support.
As far as I can tell there shouldn't be a need for the unminified version of the file to have any sourcemap information included.
As far as I can tell there shouldn't be a need for the unminified version of the file to have any sourcemap information included.
The sourcemap maps the JS to the original TS. Same for the minified version.
I personally don't need it; I have no problem debugging JS. But rather than me removing it to cater to a buggy browser, perhaps you could strip it out on your end?
I completely understand, that's what we do right now, however it means we can't use the NPM package anymore.
Well I meant something like a build step, but I'll think about it.
yeah, that was our next step, in case another library does something similar.