Browse Source

JoltPhysics: Fix dynamic import Vite warning

mrdoob 2 months ago
parent
commit
e796263ee2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/jsm/physics/JoltPhysics.js

+ 1 - 1
examples/jsm/physics/JoltPhysics.js

@@ -77,7 +77,7 @@ async function JoltPhysics() {
 
 	if ( Jolt === null ) {
 
-		const { default: initJolt } = await import( `${JOLT_PATH}` );
+		const { default: initJolt } = await import( JOLT_PATH /* @vite-ignore */ );
 		Jolt = await initJolt();
 
 	}

粤ICP备19079148号