CesiumGS/cesium

Sourcemap of `Cesium.js` (iife) points to missing source files

s3xysteak opened this issue · 3 comments

What happened?

When I use the CesiumUnminified/Cesium.js, the app works well but server logged a warn :

Sourcemap for "foo/bar.js" points to missing source files

I do not provide a sandcastle example because it is a issue about bundler. Here is a reproduction with vite:
https://github.com/s3xysteak/vite-reproduction-sourcemap-miss

And refer to a vite issue:
vitejs/vite#16695

Reproduction steps

  1. pnpm i
  2. pnpm dev
  3. Click the link to make it run in brower.
    Then you will find the warning throwed by vite server.

Sandcastle example

none

Environment

System:
OS: Windows 11 10.0.22631
CPU: (20) x64 13th Gen Intel(R) Core(TM) i5-13500HX
Memory: 5.33 GB / 15.73 GB
Binaries:
Node: 20.11.1 - ~\AppData\Local\fnm_multishells\2724_1715876072969\node.EXE
npm: 10.2.4 - ~\AppData\Local\fnm_multishells\2724_1715876072969\npm.CMD
pnpm: 9.1.1 - ~\AppData\Local\pnpm\pnpm.CMD
Browsers:
Edge: Chromium (123.0.2420.97)
Internet Explorer: 11.0.22621.3527

CesiumJS Version: v1.117.0

@syzdev The missing missing all appear to be those referenced by autolinker, a third-party dependency. Anyway to exclude this module from the vite config?

I'm closing this issue due to inactivity. If you believe this is still an issue, please feel free to re-open. Thanks!

It fixed in latest version v1.118.2 although it was not metioned in CHANGES.md