Skip to content

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

@ycw

Description

@ycw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions