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
Using ES modules results in 404 errors in the dev tools due to missing source maps:
DevTools failed to load the source map: Could not load content for https://cdn.jsdelivr.net/npm/swiper@10/shared/swiper-core.mjs.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE.
DevTools failed to load source map: Could not load content for https://cdn.jsdelivr.net/npm/swiper@10/shared/ssr-window.esm.mjs.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
...
Expected Behavior
sourceMappingURL in .mjs files should probably look like this:
This commit addresses an issue with the missing ".min" part in the source map URLs, which leads to broken links for .jsm files. The problem is that the URLs are not correctly formed, causing the files to point to non-existing locations.
In this code change, we have rectified this problem by ensuring that the source map URLs now include the ".min" part. This adjustment ensures that the links to .jsm files are correctly directed to the appropriate URLs, resolving the problem of broken links.
With this fix, the source map URLs will now be accurately generated, and the .jsm files will successfully link to their corresponding source maps, resolving the previously broken links.
Fixesnolimits4web#6863
Check that this is really a bug
Reproduction link
https://codepen.io/Deleroy/pen/RwqYwbq
Bug description
Using ES modules results in 404 errors in the dev tools due to missing source maps:
Expected Behavior
sourceMappingURL in .mjs files should probably look like this:
//# sourceMappingURL=scrollbar.min.mjs.map
not like this
//# sourceMappingURL=scrollbar.mjs.map
Actual Behavior
No response
Swiper version
10
Platform/Target and Browser Versions
Windows 11 Chrome 115
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: