Skip to content

Vite: Duplicate imports when mixing three/tsl and three/webgpu #31102

Open
@Makio64

Description

@Makio64

Description

I recently got warning in vite when i'm importing from three/tsl and three/webgpu

Duplicated imports "NodeAccess", the one from "three/tsl" has been ignored and "three/webgpu" is used
Duplicated imports "NodeShaderStage", the one from "three/tsl" has been ignored and "three/webgpu" is used
Duplicated imports "NodeType", the one from "three/tsl" has been ignored and "three/webgpu" is used
Duplicated imports "NodeUpdateType", the one from "three/tsl" has been ignored and "three/webgpu" is used
Duplicated imports "defaultBuildStages", the one from "three/tsl" has been ignored and "three/webgpu" is used
Duplicated imports "defaultShaderStages", the one from "three/tsl" has been ignored and "three/webgpu" is used
Duplicated imports "shaderStages", the one from "three/tsl" has been ignored and "three/webgpu" is used
Duplicated imports "vectorComponents", the one from "three/tsl" has been ignored and "three/webgpu" is used

Reproduction steps

  1. setup a project
  2. import from three/tsl & three/webgpu

Code

X

Live example

X

Screenshots

X

Version

r176

Device

No response

Browser

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions