Skip to content

build(ui): Add rspack as webpack alternative #77077

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 54 commits into from
May 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
6e51e59
build: replace webpack with rspack
anonrig Dec 8, 2023
d266cfd
Merge branch 'master' into scttcper/rspack
scttcper Sep 6, 2024
859e9fc
mostly working
scttcper Sep 6, 2024
8363f6b
keep changes to resolve from webpack
scttcper Sep 6, 2024
e92e6d8
Merge branch 'master' into scttcper/rspack
scttcper Sep 26, 2024
2068906
enable ContextReplacementPlugin
scttcper Sep 26, 2024
29493c9
chartcuterie
scttcper Sep 26, 2024
f3f131f
attempt to add sideEffects
scttcper Sep 26, 2024
cda4731
add future defaults
scttcper Sep 28, 2024
9997e28
Merge branch 'master' into scttcper/rspack
scttcper Oct 4, 2024
7654322
bump platformicons
scttcper Oct 4, 2024
ac8321b
Merge branch 'master' into scttcper/rspack
scttcper Oct 7, 2024
d08d06f
bump platformicons
scttcper Oct 7, 2024
f5d24d4
bump rspack
scttcper Oct 7, 2024
f6e803d
set emotion label manually
scttcper Oct 7, 2024
3c3e8fe
test calling the function manually
scttcper Oct 7, 2024
c9b13bf
Revert "test calling the function manually"
scttcper Oct 7, 2024
0477c1c
add css in lots of places
scttcper Oct 7, 2024
b94b07d
more missing css
scttcper Oct 7, 2024
7827f2a
Merge branch 'master' into scttcper/rspack
scttcper Oct 31, 2024
9d2eb71
enable experimental hmr
scttcper Oct 31, 2024
eec8d62
add back webpack stuff
scttcper Oct 31, 2024
807ff22
enable incremental only for dev mode
scttcper Oct 31, 2024
696cc24
revert to webpack
scttcper Oct 31, 2024
1f0e307
revert more
scttcper Oct 31, 2024
3a64436
update subdependencies
scttcper Oct 31, 2024
0ccd766
use dev mode
scttcper Oct 31, 2024
e73d402
add back file
scttcper Oct 31, 2024
29e0f48
any
scttcper Oct 31, 2024
93c37f9
Merge branch 'master' into scttcper/rspack
scttcper Nov 7, 2024
c46eb2a
1.1
scttcper Nov 7, 2024
9773248
Merge branch 'master' into scttcper/rspack
scttcper Dec 5, 2024
e083430
rspack 1.1.5
scttcper Dec 5, 2024
09ec298
Merge branch 'master' into scttcper/rspack
scttcper Dec 12, 2024
23304f5
rspack 1.1.6
scttcper Dec 12, 2024
acccc87
Merge branch 'master' into scttcper/rspack
scttcper Jan 27, 2025
9461403
rspack 1.2.2
scttcper Jan 27, 2025
1d1f725
lint
scttcper Jan 27, 2025
5affcf2
Merge branch 'master' into scttcper/rspack
scttcper Mar 17, 2025
6719094
update rspack, add new webpack changes
scttcper Mar 17, 2025
4849a11
Merge branch 'master' into scttcper/rspack
scttcper Apr 11, 2025
cbb0a1b
rspack 1.3.4
scttcper Apr 11, 2025
c63b188
cast type errors away
scttcper Apr 11, 2025
abfb2bb
Merge branch 'master' into scttcper/rspack
scttcper May 8, 2025
9212157
remove charcuter config
scttcper May 8, 2025
702c465
remove sideEffects
scttcper May 8, 2025
43be410
new rspack, fix types
scttcper May 8, 2025
5131494
Merge branch 'master' into scttcper/rspack
scttcper May 9, 2025
5bf7b64
Merge branch 'master' into scttcper/rspack
scttcper May 9, 2025
c37c7bd
setup cache path and codecov webpack plugin
scttcper May 9, 2025
580ea3e
fix proxy settings
scttcper May 9, 2025
5ea054b
Merge branch 'master' into scttcper/rspack
scttcper May 13, 2025
930004e
update rspack 1.3.10, add browserslist as target
scttcper May 13, 2025
e1a793d
Merge branch 'master' into scttcper/rspack
scttcper May 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build-utils/last-built-plugin.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'node:fs';
import path from 'node:path';
import type webpack from 'webpack';
import type {Compiler} from 'webpack';

type Options = {
basePath: string;
Expand All @@ -15,7 +15,7 @@ class LastBuiltPlugin {
this.isWatchMode = false;
}

apply(compiler: webpack.Compiler) {
apply(compiler: Compiler) {
compiler.hooks.watchRun.tapAsync('LastBuiltPlugin', (_, callback) => {
this.isWatchMode = true;
callback();
Expand Down
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@
"@react-stately/tabs": "^3.6.9",
"@react-stately/tree": "^3.8.4",
"@react-types/shared": "^3.24.1",
"@rsdoctor/webpack-plugin": "1.0.1",
"@rsdoctor/webpack-plugin": "1.1.2",
"@rspack/cli": "1.3.10",
"@rspack/core": "1.3.10",
"@rspack/plugin-react-refresh": "1.4.3",
"@sentry-internal/global-search": "^1.0.0",
"@sentry-internal/rrweb": "2.34.0",
"@sentry-internal/rrweb-player": "2.34.0",
Expand Down Expand Up @@ -182,6 +185,7 @@
"@sentry/jest-environment": "6.0.0",
"@sentry/profiling-node": "9.16.1",
"@styled/typescript-styled-plugin": "^1.0.1",
"@swc/plugin-emotion": "9.0.4",
"@tanstack/eslint-plugin-query": "^5.66.1",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.6.3",
Expand Down Expand Up @@ -246,18 +250,25 @@
"fix:prettier": "prettier \"**/*.md\" \"**/*.yaml\" \"**/*.[jt]s(x)?\" --write --log-level=error",
"dev": "(yarn check --verify-tree || yarn install --check-files) && sentry devserver",
"dev-ui": "SENTRY_UI_DEV_ONLY=1 SENTRY_WEBPACK_PROXY_PORT=7999 SENTRY_UI_HOT_RELOAD=1 webpack serve",
"dev-ui-rspack": "SENTRY_UI_DEV_ONLY=1 SENTRY_WEBPACK_PROXY_PORT=7999 SENTRY_UI_HOT_RELOAD=1 rspack serve",
"dev-ui-admin": "SENTRY_ADMIN_UI_DEV=1 yarn dev-ui",
"dev-ui-admin-rspack": "SENTRY_ADMIN_UI_DEV=1 yarn dev-ui-rspack",
"dev-ui-storybook": "STORYBOOK_TYPES=1 yarn dev-ui",
"dev-acceptance": "NO_DEV_SERVER=1 NODE_ENV=development webpack --watch",
"dev-acceptance-rspack": "NO_DEV_SERVER=1 NODE_ENV=development rspack --watch",
"webpack-profile": "NO_TS_FORK=1 webpack --profile --json > stats.json",
"webpack-profile-rspack": "NO_TS_FORK=1 rspack build --json > stats.json",
"install-api-docs": "yarn install --cwd ./api-docs",
"build-deprecated-docs": "yarn install-api-docs && ts-node api-docs/index.ts api-docs/openapi.json tests/apidocs/openapi-deprecated.json",
"diff-docs": "yarn install-api-docs && ts-node api-docs/openapi-diff.ts",
"deref-api-docs": "ts-node api-docs/index.ts tests/apidocs/openapi-spectacular.json tests/apidocs/openapi-derefed.json",
"build-chartcuterie-config": "node --experimental-strip-types config/build-chartcuterie.ts",
"build-acceptance-rspack": "CODECOV_ENABLE_BA=false IS_ACCEPTANCE_TEST=1 NODE_ENV=production rspack",
"build-acceptance": "CODECOV_ENABLE_BA=false IS_ACCEPTANCE_TEST=1 NODE_ENV=production webpack",
"build-production": "NODE_ENV=production webpack --mode production",
"build-production-rspack": "NODE_ENV=production rspack --mode production",
"build": "NODE_OPTIONS=--max-old-space-size=4096 webpack",
"build-rspack": "NODE_OPTIONS=--max-old-space-size=4096 rspack",
"build-js-loader": "ts-node scripts/build-js-loader.ts",
"build-js-po": "node --experimental-strip-types build-utils/ts-extract-gettext.ts",
"validate-api-examples": "yarn --cwd api-docs openapi-examples-validator ../tests/apidocs/openapi-derefed.json --no-additional-properties",
Expand Down
Loading
Loading