瀏覽代碼

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;
 
 		}