Skip to content

Commit a428d44

Browse files
authored
feat: add Rspack configurations with Rsdoctor plugin (#93)
1 parent c043703 commit a428d44

File tree

9 files changed

+575
-2
lines changed

9 files changed

+575
-2
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Rsdoctor analysis configuration file
3+
* This configuration is to support the CI process of the Rspack repository diff actions.
4+
*/
5+
import { defineConfig } from '@rspack/cli';
6+
import { RsdoctorPluginConfig } from '../../shared/rsdoctor.mjs'
7+
8+
const configs = defineConfig({
9+
extends: './rspack.config.mjs',
10+
plugins: [
11+
...RsdoctorPluginConfig,
12+
].filter(Boolean),
13+
});
14+
15+
export default configs;
16+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Rsdoctor analysis configuration file
3+
* This configuration is to support the CI process of the Rspack repository diff actions.
4+
*/
5+
import { defineConfig } from '@rspack/cli';
6+
import { RsdoctorPluginConfig } from '../../shared/rsdoctor.mjs'
7+
8+
const configs = defineConfig({
9+
extends: './rspack.config.mjs',
10+
plugins: [
11+
...RsdoctorPluginConfig,
12+
].filter(Boolean),
13+
});
14+
15+
export default configs;
16+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Rsdoctor analysis configuration file
3+
* This configuration is to support the CI process of the Rspack repository diff actions.
4+
*/
5+
import { defineConfig } from '@rspack/cli';
6+
import { RsdoctorPluginConfig } from '../../shared/rsdoctor.mjs'
7+
8+
const configs = defineConfig({
9+
extends: './rspack.config.mjs',
10+
plugins: [
11+
...RsdoctorPluginConfig,
12+
].filter(Boolean),
13+
});
14+
15+
export default configs;
16+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Rsdoctor analysis configuration file
3+
* This configuration is to support the CI process of the Rspack repository diff actions.
4+
*/
5+
import { defineConfig } from '@rspack/cli';
6+
import { RsdoctorPluginConfig } from '../../shared/rsdoctor.mjs'
7+
8+
const configs = defineConfig({
9+
extends: './rspack.config.mjs',
10+
plugins: [
11+
...RsdoctorPluginConfig,
12+
].filter(Boolean),
13+
});
14+
export default configs;
15+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Rsdoctor analysis configuration file
3+
* This configuration is to support the CI process of the Rspack repository diff actions.
4+
*/
5+
import { defineConfig } from '@rspack/cli';
6+
import { RsdoctorPluginConfig } from '../../shared/rsdoctor.mjs'
7+
8+
const configs = defineConfig({
9+
extends: './rspack.config.mjs',
10+
plugins: [
11+
...RsdoctorPluginConfig,
12+
].filter(Boolean),
13+
});
14+
export default configs;

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"version": "0.0.0",
44
"type": "module",
55
"scripts": {
6-
"benchmark": "node ./scripts/benchmark.ts"
6+
"benchmark": "node ./scripts/benchmark.ts",
7+
"build:cases": "node ./scripts/build-rspack-cases.ts"
78
},
89
"devDependencies": {
910
"@farmfe/cli": "^1.0.5",
@@ -13,6 +14,7 @@
1314
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.2",
1415
"@rsbuild/core": "1.6.10",
1516
"@rsbuild/plugin-react": "^1.4.2",
17+
"@rsdoctor/rspack-plugin": "^1.3.11",
1618
"@rspack/cli": "1.6.5",
1719
"@rspack/core": "1.6.5",
1820
"@rspack/plugin-react-refresh": "^1.5.3",

0 commit comments

Comments
 (0)