Browse Source

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

Garrett Johnson 6 years ago
parent
commit
406bde0e38
1 changed files with 3 additions and 2 deletions
  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'
 
 		}