Skip to content

Commit

Permalink
feat(bundle): rspack mode add bundle analysis by rspack's hooks and a…
Browse files Browse the repository at this point in the history
…dd rules scan.
  • Loading branch information
easy1090 committed Jan 16, 2024
1 parent 741bb5d commit 5b56ed0
Show file tree
Hide file tree
Showing 8 changed files with 166 additions and 35 deletions.
2 changes: 1 addition & 1 deletion e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@rsdoctor/types": "workspace:*",
"@rsdoctor/utils": "workspace:*",
"@rsdoctor/webpack-plugin": "workspace:*",
"@rspack/core": "0.5.0",
"@rspack/core": "0.5.1",
"@types/lodash": "^4.14.200",
"@types/node": "^16",
"@types/react": "^18",
Expand Down
8 changes: 5 additions & 3 deletions examples/rspack-minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"dependencies": {
"@arco-design/web-react": "^2.58.3",
"@svgr/webpack": "^8.1.0",
"@swc/helpers": "^0.5.3",
"classnames": "^2.5.1",
"css-loader": "^6.9.0",
"less-loader": "^11.1.4",
Expand All @@ -18,11 +19,12 @@
},
"devDependencies": {
"@rsdoctor/rspack-plugin": "workspace:*",
"@rspack/plugin-react-refresh": "0.5.0",
"@rspack/cli": "0.5.0",
"@rspack/core": "0.5.0",
"@rspack/cli": "0.5.1",
"@rspack/core": "0.5.1",
"@rspack/plugin-react-refresh": "0.5.1",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"react-refresh": "^0.14.0",
"web-vitals": "^2.1.4"
},
"browserslist": {
Expand Down
6 changes: 3 additions & 3 deletions examples/rspack-minimal/rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ const config = {
}
]
},
optimization: {
minimize: false // Disabling minification because it takes too long on CI
},
resolve: {
extensions: ['...', '.tsx', '.ts', '.jsx'], // "..." means to extend from the default extensions
},
plugins: [
new ReactRefreshPlugin(),
new RsdoctorRspackPlugin({
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@rsdoctor/sdk": "workspace:*",
"@rsdoctor/types": "workspace:*",
"@rsdoctor/utils": "workspace:*",
"@rspack/core": "0.5.0",
"@rspack/core": "0.5.1",
"axios": "^1.6.1",
"bytes": "3.1.2",
"enhanced-resolve": "5.12.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/rspack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@rsdoctor/core": "workspace:*",
"@rsdoctor/sdk": "workspace:*",
"@rsdoctor/graph": "workspace:*",
"@rspack/core": "0.5.0",
"@rspack/core": "0.5.1",
"lodash": "^4.17.21"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/test-helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dev": "modern build --watch"
},
"dependencies": {
"@rspack/core": "0.5.0",
"@rspack/core": "0.5.1",
"@types/lodash": "^4.14.200",
"@types/node": "^16",
"lodash": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"start": "npm run build -- -w"
},
"dependencies": {
"@rspack/core": "0.5.0",
"@rspack/core": "0.5.1",
"@types/connect": "3.4.35",
"@types/estree": "1.0.0",
"@types/tapable": "2.2.2",
Expand Down
Loading

0 comments on commit 5b56ed0

Please sign in to comment.