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

Rollup: Simplified header()

Mr.doob преди 5 години
родител
ревизия
74f57df75c
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      utils/build/rollup.config.js

+ 1 - 3
utils/build/rollup.config.js

@@ -243,13 +243,11 @@ function bubleCleanup() {
 
 function header() {
 
-	const template = "// threejs.org/license\n${code}";
-
 	return {
 
 		renderChunk( code ) {
 
-			return template.replace( '${code}', code );
+			return "// threejs.org/license\n" + code;
 
 		}