Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utils/build/rollup.config.js: Minified builds have wrong sourcemaps generated #26779

Closed
ycw opened this issue Sep 17, 2023 · 0 comments · Fixed by #26780
Closed

Utils/build/rollup.config.js: Minified builds have wrong sourcemaps generated #26779

ycw opened this issue Sep 17, 2023 · 0 comments · Fixed by #26780

Comments

@ycw
Copy link
Contributor

ycw commented Sep 17, 2023

Description

Building three.module.min.js with sourcemaps support ... by using the threejs-provided rc will gen wrong sourcemaps... almost all sources are missing in result map.

Reproduction steps

  1. modify import map in webgl_animation_keyframes.html, "three": "../build/three.module.min.js"

  2. run $ npm run dev

  3. open webgl_animation_keyframes.html at localhost

  4. bring up devtools; browse sources at "sources > viewer/ > localhost:8080/ > src/"

    sourcemap_fail

    as you can see, almost all sources are missing.

Code

Live example

Screenshots

No response

Version

r156

Device

No response

Browser

No response

OS

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant