Skip to content

RapierPhysics: Fix dynamic import Vite warning#32565

Merged
mrdoob merged 1 commit intodevfrom
claude/fix-threejs-32560-WzE01
Dec 16, 2025
Merged

RapierPhysics: Fix dynamic import Vite warning#32565
mrdoob merged 1 commit intodevfrom
claude/fix-threejs-32560-WzE01

Conversation

@mrdoob
Copy link
Owner

@mrdoob mrdoob commented Dec 16, 2025

Fixes: #32560

Description

Add @vite-ignore comment to suppress Vite's "dynamic import cannot be analyzed" warning. The import loads Rapier from a CDN at runtime, which
cannot be statically analyzed by design.

@mrdoob mrdoob force-pushed the claude/fix-threejs-32560-WzE01 branch from ef86e24 to f5bcc86 Compare December 16, 2025 05:17
Add @vite-ignore comment to suppress Vite's "dynamic import cannot be
analyzed" warning. The import loads Rapier from a CDN at runtime, which
cannot be statically analyzed by design.

Fixes #32560
@mrdoob mrdoob force-pushed the claude/fix-threejs-32560-WzE01 branch from f5bcc86 to d242556 Compare December 16, 2025 05:19
@mrdoob mrdoob changed the title Resolve Three.js issue 32560 RapierPhysics: Fix dynamic import Vite warning Dec 16, 2025
@mrdoob mrdoob merged commit 65d2de7 into dev Dec 16, 2025
9 checks passed
@mrdoob mrdoob deleted the claude/fix-threejs-32560-WzE01 branch December 16, 2025 05:51
@YusakuNo1
Copy link
Contributor

YusakuNo1 commented Dec 16, 2025

When I check the potential fix from AI, it seems like we need to fix one more file? https://github.com/mrdoob/three.js/pull/32566/files

@mrdoob
Copy link
Owner Author

mrdoob commented Dec 16, 2025

Yes, can you do a PR to fix Jolt following the fix for Rapier here?

@mrdoob
Copy link
Owner Author

mrdoob commented Dec 16, 2025

Also, make sure the PR title and description are descriptive.

@mrdoob
Copy link
Owner Author

mrdoob commented Dec 16, 2025

e796263

@mrdoob mrdoob mentioned this pull request Dec 16, 2025
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 this pull request may close these issues.

Dynamic import cannot be analyzed by Vite

3 participants