浏览代码

Build ESM target first. (#22371)

Michael Herzog 4 年之前
父节点
当前提交
efba1d0b01
共有 1 个文件被更改,包括 15 次插入15 次删除
  1. 15 15
      utils/build/rollup.config.js

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

@@ -275,6 +275,21 @@ ${ code }`;
 }
 
 export default [
+	{
+		input: 'src/Three.js',
+		plugins: [
+			addons(),
+			glconstants(),
+			glsl(),
+			header()
+		],
+		output: [
+			{
+				format: 'esm',
+				file: 'build/three.module.js'
+			}
+		]
+	},
 	{
 		input: 'src/Three.js',
 		plugins: [
@@ -320,20 +335,5 @@ export default [
 				file: 'build/three.min.js'
 			}
 		]
-	},
-	{
-		input: 'src/Three.js',
-		plugins: [
-			addons(),
-			glconstants(),
-			glsl(),
-			header()
-		],
-		output: [
-			{
-				format: 'esm',
-				file: 'build/three.module.js'
-			}
-		]
 	}
 ];