Browse Source

Build: Remove Babel. (#25192)

* Build: Remove Babel.

* Update package-lock.json
Michael Herzog 2 years ago
parent
commit
9c9079129f
4 changed files with 1249 additions and 1409 deletions
  1. 1248 1340
      package-lock.json
  2. 0 11
      package.json
  3. 0 21
      utils/build/.babelrc.json
  4. 1 37
      utils/build/rollup.config.js

File diff suppressed because it is too large
+ 1248 - 1340
package-lock.json


+ 0 - 11
package.json

@@ -45,12 +45,6 @@
       "mdcs",
       "mdcs",
       "plugin:compat/recommended"
       "plugin:compat/recommended"
     ],
     ],
-    "parser": "@babel/eslint-parser",
-    "parserOptions": {
-      "babelOptions": {
-        "configFile": "./utils/build/.babelrc.json"
-      }
-    },
     "plugins": [
     "plugins": [
       "html",
       "html",
       "import"
       "import"
@@ -141,11 +135,6 @@
   },
   },
   "homepage": "https://threejs.org/",
   "homepage": "https://threejs.org/",
   "devDependencies": {
   "devDependencies": {
-    "@babel/core": "^7.20.5",
-    "@babel/eslint-parser": "^7.19.1",
-    "@babel/plugin-proposal-class-properties": "^7.18.6",
-    "@babel/preset-env": "^7.20.2",
-    "@rollup/plugin-babel": "^6.0.3",
     "@rollup/plugin-node-resolve": "^15.0.1",
     "@rollup/plugin-node-resolve": "^15.0.1",
     "chalk": "^5.1.2",
     "chalk": "^5.1.2",
     "concurrently": "^7.6.0",
     "concurrently": "^7.6.0",

+ 0 - 21
utils/build/.babelrc.json

@@ -1,21 +0,0 @@
-{
-  "presets": [
-    [
-      "@babel/preset-env",
-      {
-        "modules": false,
-        "targets": ">1%",
-        "loose": true,
-        "bugfixes": true
-      }
-    ]
-  ],
-  "plugins": [
-    [
-      "@babel/plugin-proposal-class-properties",
-      {
-        "loose": true
-      }
-    ]
-  ]
-}

+ 1 - 37
utils/build/rollup.config.js

@@ -1,6 +1,4 @@
-import babel from '@rollup/plugin-babel';
 import { terser } from 'rollup-plugin-terser';
 import { terser } from 'rollup-plugin-terser';
-import babelrc from './.babelrc.json';
 
 
 export function glconstants() {
 export function glconstants() {
 
 
@@ -246,27 +244,6 @@ export function glsl() {
 
 
 }
 }
 
 
-function babelCleanup() {
-
-	const doubleSpaces = / {2}/g;
-
-	return {
-
-		transform( code ) {
-
-			code = code.replace( doubleSpaces, '\t' );
-
-			return {
-				code: code,
-				map: null
-			};
-
-		}
-
-	};
-
-}
-
 function header() {
 function header() {
 
 
 	return {
 	return {
@@ -307,13 +284,6 @@ const builds = [
 		plugins: [
 		plugins: [
 			addons(),
 			addons(),
 			glsl(),
 			glsl(),
-			babel( {
-				babelHelpers: 'bundled',
-				compact: false,
-				babelrc: false,
-				...babelrc
-			} ),
-			babelCleanup(),
 			header()
 			header()
 		],
 		],
 		output: [
 		output: [
@@ -337,12 +307,6 @@ const builds = [
 			addons(),
 			addons(),
 			glconstants(),
 			glconstants(),
 			glsl(),
 			glsl(),
-			babel( {
-				babelHelpers: 'bundled',
-				babelrc: false,
-				...babelrc
-			} ),
-			babelCleanup(),
 			terser(),
 			terser(),
 			header()
 			header()
 		],
 		],
@@ -356,4 +320,4 @@ const builds = [
 	}
 	}
 ];
 ];
 
 
-export default ( args ) => args.configOnlyModule ? builds[ 0 ] : builds;
+export default ( args ) => args.configOnlyModule ? builds[ 0 ] : builds;

Some files were not shown because too many files changed in this diff