Skip to content

Commit e2f5591

Browse files
Dropped support for Babel integration
Signed-off-by: Anonymous-Humanoid <[email protected]>
1 parent e0d1035 commit e2f5591

File tree

7 files changed

+17
-2243
lines changed

7 files changed

+17
-2243
lines changed

.babelrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

TODO.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@
99
instead of `-c` to dynamically resolve the config file. See more at:
1010
[feature flags](https://eslint.org/docs/latest/flags#flag-prefixes)
1111
- Add ESLint/Prettier Git CI integration
12-
- Remove unused Babel dependencies
1312
- Configure .hintrc
1413
- Add tests with Playwright for Node.js

package-lock.json

Lines changed: 15 additions & 2211 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
"react-dom": "^19.0.0"
2727
},
2828
"devDependencies": {
29-
"@babel/core": "^7.20.12",
30-
"@babel/plugin-proposal-class-properties": "^7.18.6",
31-
"@babel/preset-env": "^7.20.2",
32-
"@babel/preset-react": "^7.18.6",
3329
"@eslint/js": "^9.23.0",
3430
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
3531
"@stylistic/eslint-plugin": "^4.2.0",
@@ -40,8 +36,6 @@
4036
"@types/react-refresh": "^0.14.6",
4137
"@types/zip-webpack-plugin": "^3.0.6",
4238
"@typescript-eslint/utils": "^8.28.0",
43-
"babel-loader": "^9.1.2",
44-
"babel-preset-react-app": "^10.0.1",
4539
"clean-webpack-plugin": "^4.0.0",
4640
"copy-webpack-plugin": "^11.0.0",
4741
"css-loader": "^6.7.3",

webpack/build.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import ZipPlugin from 'zip-webpack-plugin';
88
const __filename = fileURLToPath(import.meta.url);
99
const __dirname = path.dirname(__filename);
1010

11-
// Do this as the first thing so that any code reading it knows the right env.
12-
process.env.BABEL_ENV = 'production';
11+
// Setting env
1312
process.env.NODE_ENV = 'production';
1413

1514
// Env-dependent imports

webpack/webpack.config.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,6 @@ const config: webpack.Configuration = {
159159
use: [
160160
{
161161
loader: 'source-map-loader'
162-
},
163-
{
164-
loader: require.resolve('babel-loader'),
165-
options: {
166-
plugins: [
167-
// prettier-ignore
168-
// (Line wrapping conflicts with ESLint)
169-
IS_DEV_MODE
170-
&& require.resolve('react-refresh/babel')
171-
].filter(Boolean)
172-
}
173162
}
174163
],
175164
exclude: /node_modules/

webpack/webserver.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import WebpackDevServer from 'webpack-dev-server';
77
const __filename = fileURLToPath(import.meta.url);
88
const __dirname = path.dirname(__filename);
99

10-
// Do this as the first thing so that any code reading it knows the right env
11-
process.env.BABEL_ENV = 'development';
10+
// Setting env
1211
process.env.NODE_ENV = 'development';
1312

1413
// Env-dependent imports

0 commit comments

Comments
 (0)