Skip to content

Commit edea6a4

Browse files
authored
chore: remove @rsbuild/core (#11383)
Remove @rsbuild/core
1 parent fa6d60c commit edea6a4

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

packages/rspack/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242
},
4343
"devDependencies": {
4444
"@ast-grep/napi": "^0.39.1",
45-
"@rsbuild/core": "^1.4.10",
45+
"@rsbuild/plugin-node-polyfill": "^1.3.0",
4646
"@rslib/core": "0.11.0",
4747
"@swc/types": "0.1.23",
48-
"@rsbuild/plugin-node-polyfill": "^1.3.0",
4948
"@types/graceful-fs": "4.1.9",
5049
"@types/watchpack": "^2.4.4",
5150
"browserslist-load-config": "^1.0.0",
5251
"enhanced-resolve": "5.18.2",
52+
"glob-to-regexp": "^0.4.1",
5353
"graceful-fs": "^4.2.11",
5454
"memfs": "4.36.0",
5555
"prebundle": "^1.4.1",
@@ -58,7 +58,6 @@
5858
"typescript": "^5.9.2",
5959
"watchpack": "^2.4.4",
6060
"webpack-sources": "3.3.3",
61-
"glob-to-regexp": "^0.4.1",
6261
"zod": "^3.25.76",
6362
"zod-validation-error": "3.5.3"
6463
},

packages/rspack/rslib.config.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import fs from "node:fs";
22
import path from "node:path";
33
import { type Edit, Lang, parse } from "@ast-grep/napi";
4-
import type { RsbuildPlugin } from "@rsbuild/core";
54
import { defineConfig, type LibConfig, rsbuild, rspack } from "@rslib/core";
65
import prebundleConfig from "./prebundle.config.mjs";
76

@@ -69,7 +68,7 @@ const commonLibConfig: LibConfig = {
6968
* do not depend on `zod` types, we add `@ts-ignore` to prevent type errors
7069
* when users set `skipLibCheck: false` in their tsconfig.json file.
7170
*/
72-
const fixZodTypePlugin: RsbuildPlugin = {
71+
const fixZodTypePlugin: rsbuild.RsbuildPlugin = {
7372
name: "fix-zod-type",
7473
setup(api) {
7574
api.onAfterBuild(async () => {
@@ -103,7 +102,7 @@ const fixZodTypePlugin: RsbuildPlugin = {
103102
}
104103
};
105104

106-
const mfRuntimePlugin: RsbuildPlugin = {
105+
const mfRuntimePlugin: rsbuild.RsbuildPlugin = {
107106
name: "mf-runtime",
108107
setup(api) {
109108
api.onAfterBuild(async () => {
@@ -136,7 +135,7 @@ const mfRuntimePlugin: RsbuildPlugin = {
136135
}
137136
};
138137

139-
const codmodPlugin: RsbuildPlugin = {
138+
const codmodPlugin: rsbuild.RsbuildPlugin = {
140139
name: "codmod",
141140
setup(api) {
142141
/**

pnpm-lock.yaml

Lines changed: 3 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)