Browse Source

fix(rollup.config.js): Clean up.

linbingquan 4 years ago
parent
commit
09f358ade9
1 changed files with 4 additions and 4 deletions
  1. 4 4
      utils/build/rollup.config.js

+ 4 - 4
utils/build/rollup.config.js

@@ -1,5 +1,5 @@
-import babel from "@rollup/plugin-babel";
-import { terser } from "rollup-plugin-terser";
+import babel from '@rollup/plugin-babel';
+import { terser } from 'rollup-plugin-terser';
 
 if ( String.prototype.replaceAll === undefined ) {
 
@@ -260,7 +260,7 @@ function header() {
 
 		renderChunk( code ) {
 
-			return "// threejs.org/license\n" + code;
+			return '// threejs.org/license\n' + code;
 
 		}
 
@@ -276,7 +276,7 @@ function polyfills() {
 
 			if ( filePath.endsWith( 'src/Three.js' ) || filePath.endsWith( 'src\\Three.js' ) ) {
 
-				code = "import './polyfills';\n" + code;
+				code = 'import \'./polyfills\';\n' + code;
 
 			}