소스 검색

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