Skip to content

Commit fdef2b2

Browse files
authored
build-examples: Fix problem with import * as THREE (#22306)
1 parent d905a21 commit fdef2b2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

utils/build/rollup.examples.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ function unmodularize() {
9090
code = code.replace( /import \* as ([a-zA-Z0-9_, ]+) from '((?!libs).)*';/g, ( match, p1 ) => {
9191

9292
const imp = p1;
93-
imports.push( imp );
93+
if ( imp !== 'THREE' ) {
94+
95+
imports.push( imp );
96+
97+
}
9498

9599
return '';
96100

0 commit comments

Comments
 (0)