@@ -294,6 +294,22 @@ const builds = [
}
]
},
+ {
+ input: 'src/Three.js',
+ plugins: [
+ addons(),
+ glconstants(),
+ glsl(),
+ terser(),
+ header()
+ ],
+ output: [
+ format: 'esm',
+ file: 'build/three.module.min.js'
+ }
+ ]
+ },
{
input: 'src/Three.js',
plugins: [
@@ -310,6 +326,24 @@ const builds = [
+
+ format: 'cjs',
+ name: 'THREE',
+ file: 'build/three.min.cjs',
+ indent: '\t'
{ // @deprecated, r150