Преглед на файлове

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

Garrett Johnson преди 6 години
родител
ревизия
406bde0e38
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      rollup-examples.config.js

+ 3 - 2
rollup-examples.config.js

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