cesium icon indicating copy to clipboard operation
cesium copied to clipboard

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

Open s3xysteak opened this issue 1 year ago • 1 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: https://github.com/vitejs/vite/issues/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

s3xysteak avatar May 17 '24 15:05 s3xysteak

@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?

ggetz avatar May 24 '24 20:05 ggetz

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

ggetz avatar May 31 '24 13:05 ggetz

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

s3xysteak avatar Jun 17 '24 02:06 s3xysteak