JS 源映射文件不存在 - Lighthouse

JS Source map file doesnt exist - Lighthouse

Lighthouse 找不到源地图文件,即使我在脚本本身之后添加了它们。

<script src="https://unpkg.com/swiper@6.5.0/swiper-bundle.js"></script>
<script src="https://unpkg.com/swiper@6.5.0/swiper-bundle.js.map"></script>

源映射不是这样工作的。您必须在 JS 文件末尾附加 //# sourceMappingURL=swiper-bundle.js.map