Pārlūkot izejas kodu

Update banner, convert three.module path to 'three'

Garrett Johnson 6 gadi atpakaļ
vecāks
revīzija
406bde0e38
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      rollup-examples.config.js

+ 3 - 2
rollup-examples.config.js

@@ -23,13 +23,14 @@ function createOutput( file ) {
 			name: 'THREE',
 			file: outputPath,
 
-			globals: () => 'THREE',
+            globals: () => 'THREE',
+            paths: p => /three\.module\.js$/.test( p ) ? 'three' : p,
 			extend: true,
 
 			banner:
 				'/**\n' +
 				` * Generated from '${ path.relative( '.', inputPath.replace( /\\/, '/' ) ) }'\n` +
-				' **/\n'
+				' */\n'
 
 		}