Skip to content

Commit 4945b72

Browse files
committed
rspack optimizations
1 parent 49d9093 commit 4945b72

File tree

14 files changed

+30
-183
lines changed

14 files changed

+30
-183
lines changed

.circleci/config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,13 @@ jobs:
101101
executor:
102102
name: node/default
103103
# The Node version here should be compatible with `package.json` engines.
104-
tag: '22'
104+
# Note: cimg/node requires at least a minor version (e.g., '22.0'), not just major version
105+
tag: '22.0'
105106
steps:
106107
- checkout
107108
- run:
108109
name: Install pnpm
109-
command: corepack enable && corepack prepare [email protected] --activate
110+
command: sudo corepack enable && corepack prepare [email protected] --activate
110111
- run:
111112
name: Install dependencies
112113
command: pnpm install --frozen-lockfile

babel.config.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,7 @@
1818
[
1919
"@babel/preset-react",
2020
{
21-
"development": true,
22-
"useSpread": true
23-
}
24-
]
25-
],
26-
"plugins": [
27-
"@babel/plugin-syntax-dynamic-import",
28-
"react-hot-loader/babel",
29-
[
30-
"@babel/plugin-proposal-class-properties",
31-
{
32-
"loose": true
21+
"runtime": "automatic"
3322
}
3423
]
3524
]

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
"buffer": "6.0.3",
2828
"connected-react-router": "6.9.3",
2929
"crypto-browserify": "3.12.1",
30-
"eslint-formatter-codeframe": "7.32.1",
3130
"fuse.js": "6.0.4",
32-
"globals": "16.1.0",
3331
"history": "4.10.1",
3432
"js-cookie": "3.0.5",
3533
"js-yaml": "4.1.1",
@@ -49,7 +47,6 @@
4947
"react-helmet": "6.1.0",
5048
"react-highlight-words": "0.20.0",
5149
"react-hot-keys": "2.7.3",
52-
"react-hot-loader": "4.13.1",
5350
"react-lazylog": "4.5.3",
5451
"react-linkify": "0.2.2",
5552
"react-redux": "8.0.7",
@@ -60,7 +57,6 @@
6057
"redoc": "2.4.0",
6158
"redux": "4.2.1",
6259
"redux-debounce": "1.0.1",
63-
"redux-mock-store": "1.5.5",
6460
"redux-thunk": "2.4.2",
6561
"stream-browserify": "3.0.0",
6662
"styled-components": "6.1.19",
@@ -74,8 +70,6 @@
7470
"devDependencies": {
7571
"@babel/core": "7.26.10",
7672
"@babel/eslint-parser": "7.26.10",
77-
"@babel/plugin-proposal-class-properties": "7.18.6",
78-
"@babel/plugin-syntax-dynamic-import": "7.8.3",
7973
"@babel/preset-env": "7.26.9",
8074
"@babel/preset-react": "7.27.1",
8175
"@pollyjs/adapter-fetch": "6.0.7",
@@ -95,28 +89,31 @@
9589
"eslint": "9.32.0",
9690
"eslint-config-airbnb": "19.0.4",
9791
"eslint-config-prettier": "10.1.8",
92+
"eslint-formatter-codeframe": "7.32.1",
9893
"eslint-plugin-import": "2.31.0",
9994
"eslint-plugin-jest": "28.13.5",
10095
"eslint-plugin-jsx-a11y": "6.10.2",
10196
"eslint-plugin-prettier": "4.2.5",
10297
"eslint-plugin-react": "7.37.5",
10398
"fetch-mock": "9.4.0",
99+
"globals": "16.1.0",
104100
"html-loader": "5.1.0",
105101
"jest": "29.7.0",
106102
"jest-environment-jsdom": "29.7.0",
107103
"jest-environment-puppeteer": "11.0.0",
108104
"jest-puppeteer": "11.0.0",
109105
"markdownlint-cli": "0.43.0",
110-
"path": "0.12.7",
111106
"prettier": "2.2.1",
112107
"puppeteer": "24.2.1",
108+
"redux-mock-store": "1.5.5",
113109
"sass": "1.93.2",
114110
"sass-loader": "16.0.6",
115111
"setup-polly-jest": "0.11.0",
116112
"style-loader": "4.0.0",
117113
"webpack-merge": "6.0.1"
118114
},
119115
"scripts": {
116+
"preinstall": "npx only-allow pnpm",
120117
"build": "rspack build --mode production",
121118
"build:dev": "rspack build --mode development",
122119
"format": "prettier --write \"**/*.{css,html,js,jsx,json,md,yaml,yml}\"",

0 commit comments

Comments
 (0)