Ver Fonte

Remove deprecated build files (#27507)

* Remove deprecated builds

* remove unused file
Garrett Johnson há 1 ano atrás
pai
commit
8540cef497
4 ficheiros alterados com 1 adições e 13925 exclusões
  1. 0 13864
      build/three.js
  2. 0 6
      build/three.min.js
  3. 1 1
      package.json
  4. 0 54
      utils/build/rollup.config.js

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 13864
build/three.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 6
build/three.min.js


+ 1 - 1
package.json

@@ -3,7 +3,7 @@
   "version": "0.160.0",
   "description": "JavaScript 3D library",
   "type": "module",
-  "main": "./build/three.js",
+  "main": "./build/three.cjs",
   "module": "./build/three.module.js",
   "exports": {
     ".": {

+ 0 - 54
utils/build/rollup.config.js

@@ -60,27 +60,6 @@ function header() {
 
 }
 
-function deprecationWarning() {
-
-	return {
-
-		renderChunk( code ) {
-
-			code = new MagicString( code );
-
-			code.prepend( `console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated with r150+, and will be removed with r160. Please use ES Modules or alternatives: https://threejs.org/docs/index.html#manual/en/introduction/Installation' );\n` );
-
-			return {
-				code: code.toString(),
-				map: code.generateMap()
-			};
-
-		}
-
-	};
-
-}
-
 const builds = [
 	{
 		input: 'src/Three.js',
@@ -123,39 +102,6 @@ const builds = [
 				indent: '\t'
 			}
 		]
-	},
-
-	{ // @deprecated, r150
-		input: 'src/Three.js',
-		plugins: [
-			glsl(),
-			header(),
-			deprecationWarning()
-		],
-		output: [
-			{
-				format: 'umd',
-				name: 'THREE',
-				file: 'build/three.js',
-				indent: '\t'
-			}
-		]
-	},
-	{ // @deprecated, r150
-		input: 'src/Three.js',
-		plugins: [
-			glsl(),
-			header(),
-			deprecationWarning(),
-			terser()
-		],
-		output: [
-			{
-				format: 'umd',
-				name: 'THREE',
-				file: 'build/three.min.js'
-			}
-		]
 	}
 ];
 

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff