File tree Expand file tree Collapse file tree 7 files changed +17
-2243
lines changed Expand file tree Collapse file tree 7 files changed +17
-2243
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
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" ,
Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ import ZipPlugin from 'zip-webpack-plugin';
88const __filename = fileURLToPath ( import . meta. url ) ;
99const __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
1312process . env . NODE_ENV = 'production' ;
1413
1514// Env-dependent imports
Original file line number Diff line number Diff 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 : / n o d e _ m o d u l e s /
Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ import WebpackDevServer from 'webpack-dev-server';
77const __filename = fileURLToPath ( import . meta. url ) ;
88const __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
1211process . env . NODE_ENV = 'development' ;
1312
1413// Env-dependent imports
You can’t perform that action at this time.
0 commit comments