How to debug why MS Edge/IE11 does not load sourcemap

徘徊边缘 提交于 2019-12-19 05:11:03

问题


I made some source+map concatenation and result works in Firefox and Chrome, but does not even request bundle.js.map from webserver in MS Edge and IE11.

Actual JS file is served from http://localhost:8080/bundle.js

bundle.js ends with line:

//# sourceMappingURL=bundle.js.map

Tried both end it with new line and without, does not work in both cases. Is there some checklist to look at or even some "validator"?


回答1:


Microsoft Edge expects a single sourcemap comment, located at the end of the file. Your file contains two comments, which appears to cause the issue. Remove all but the final comment, and this should resolve the issue for you.

I will file a ticket to track this issue, but it's unlikely we will modify our implementation to accommodate a non-standard use of sourcemap comments. Thank you for bringing this to our attention though. We'll keep watch to see if this affects other users.



来源:https://stackoverflow.com/questions/34687049/how-to-debug-why-ms-edge-ie11-does-not-load-sourcemap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!