feat: cleanup webpack deps (#14530)

#### PR Dependency Tree


* **PR #14530** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Breaking Changes**
  * Webpack bundler support removed from the build system
* Bundler selection parameter removed from build and development
commands

* **Refactor**
  * Build configuration consolidated to a single bundler approach
* Webpack-specific build paths and workflows removed; development server
simplified

* **Chores**
  * Removed webpack-related dev dependencies and tooling
  * Updated package build scripts for a unified bundle command

* **Dependencies**
* Upgraded Sentry packages across frontend packages
(react/electron/esbuild plugin)
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
DarkSky
2026-02-28 00:24:08 +08:00
committed by GitHub
parent a4e2242b8d
commit 2cb171f553
30 changed files with 588 additions and 1929 deletions
-23
View File
@@ -1,23 +0,0 @@
import fs from 'node:fs/promises';
import path from 'node:path';
import { build } from 'esbuild';
const result = await build({
entryPoints: ['./src/index.ts'],
bundle: true,
platform: 'node',
outdir: 'dist',
target: 'es2024',
sourcemap: true,
format: 'esm',
external: ['yjs'],
metafile: true,
});
if (process.env.METAFILE) {
await fs.writeFile(
path.resolve(`metafile-${Date.now()}.json`),
JSON.stringify(result.metafile, null, 2)
);
}
+2 -2
View File
@@ -10,8 +10,8 @@
"./dist": "./dist/index.js"
},
"scripts": {
"build": "yarn bundle",
"bundle": "node esbuild.config.js"
"build": "affine bundle -p @affine/reader",
"bundle": "affine bundle -p @affine/reader"
},
"dependencies": {
"lodash-es": "^4.17.23",
+1 -1
View File
@@ -37,7 +37,7 @@
"@radix-ui/react-toggle": "^1.1.1",
"@radix-ui/react-toggle-group": "^1.1.1",
"@radix-ui/react-tooltip": "^1.1.5",
"@sentry/react": "^9.47.1",
"@sentry/react": "^10.40.0",
"@tanstack/react-table": "^8.20.5",
"@toeverything/infra": "workspace:*",
"@toeverything/theme": "^1.1.23",
+1 -1
View File
@@ -26,7 +26,7 @@
"@capacitor/keyboard": "^7.0.0",
"@capacitor/status-bar": "^7.0.0",
"@capgo/inappbrowser": "^8.0.0",
"@sentry/react": "^9.47.1",
"@sentry/react": "^10.40.0",
"@toeverything/infra": "workspace:*",
"async-call-rpc": "^6.4.2",
"idb": "^8.0.0",
@@ -17,7 +17,7 @@
"@affine/track": "workspace:*",
"@blocksuite/affine": "workspace:*",
"@emotion/react": "^11.14.0",
"@sentry/react": "^9.47.1",
"@sentry/react": "^10.40.0",
"@toeverything/infra": "workspace:*",
"@toeverything/theme": "^1.1.23",
"@vanilla-extract/css": "^1.17.0",
+3 -4
View File
@@ -38,7 +38,6 @@
"@affine/nbstore": "workspace:*",
"@electron-forge/cli": "^7.10.2",
"@electron-forge/core": "^7.10.2",
"@electron-forge/core-utils": "^7.10.2",
"@electron-forge/maker-deb": "^7.10.2",
"@electron-forge/maker-dmg": "^7.10.2",
"@electron-forge/maker-flatpak": "^7.10.2",
@@ -48,9 +47,9 @@
"@electron-forge/plugin-fuses": "^7.10.2",
"@electron-forge/shared-types": "^7.10.2",
"@reforged/maker-appimage": "^5.2.0",
"@sentry/electron": "^7.0.0",
"@sentry/esbuild-plugin": "^4.0.0",
"@sentry/react": "^9.47.1",
"@sentry/electron": "^7.9.0",
"@sentry/esbuild-plugin": "^5.1.1",
"@sentry/react": "^10.40.0",
"@toeverything/infra": "workspace:*",
"@types/set-cookie-parser": "^2.4.10",
"@types/uuid": "^11.0.0",
+1 -1
View File
@@ -30,7 +30,7 @@
"@capacitor/haptics": "^7.0.0",
"@capacitor/ios": "^7.0.0",
"@capacitor/keyboard": "^7.0.0",
"@sentry/react": "^9.47.1",
"@sentry/react": "^10.40.0",
"@toeverything/infra": "workspace:^",
"async-call-rpc": "^6.4.2",
"capacitor-plugin-app-tracking-transparency": "^2.0.5",
+1 -1
View File
@@ -17,7 +17,7 @@
"@affine/track": "workspace:*",
"@blocksuite/affine": "workspace:*",
"@blocksuite/icons": "^2.2.17",
"@sentry/react": "^9.47.1",
"@sentry/react": "^10.40.0",
"@toeverything/infra": "workspace:*",
"react": "^19.2.1",
"react-dom": "^19.2.1",
+1 -1
View File
@@ -16,7 +16,7 @@
"@affine/nbstore": "workspace:*",
"@affine/track": "workspace:*",
"@emotion/react": "^11.14.0",
"@sentry/react": "^9.47.1",
"@sentry/react": "^10.40.0",
"@toeverything/infra": "workspace:*",
"react": "^19.2.1",
"react-dom": "^19.2.1",
+1 -1
View File
@@ -45,7 +45,7 @@
"@radix-ui/react-scroll-area": "^1.2.2",
"@radix-ui/react-slot": "^1.1.1",
"@radix-ui/react-toolbar": "^1.1.1",
"@sentry/react": "^9.47.1",
"@sentry/react": "^10.40.0",
"@toeverything/infra": "workspace:*",
"@toeverything/pdf-viewer": "^0.1.1",
"@toeverything/theme": "^1.1.23",
-1
View File
@@ -1,4 +1,3 @@
/// <reference types="@webpack/env" />
/// <reference types="@rspack/core/module" />
declare module '*.md' {
+1 -1
View File
@@ -8,7 +8,7 @@
},
"dependencies": {
"@affine/debug": "workspace:*",
"@sentry/react": "^9.47.1",
"@sentry/react": "^10.40.0",
"nanoid": "^5.1.6",
"react-router-dom": "^6.30.3"
},