Browse Source

Rollup: Simplified header()

Mr.doob 4 years ago
parent
commit
74f57df75c
1 changed files with 1 additions and 3 deletions
  1. 1 3
      utils/build/rollup.config.js

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

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