@4399ywkf/core 5.1.4 → 5.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1090,6 +1090,11 @@ interface YwkfConfig {
1090
1090
  appCName?: string;
1091
1091
  /** 是否启用 React StrictMode @default true */
1092
1092
  strictMode?: boolean;
1093
+ /** 是否启用 SWC 原生 React Compiler(需 rspack ≥2.1、React 19;React 18 用 { target: "18" } 并安装 react-compiler-runtime) @default false */
1094
+ reactCompiler?: boolean | {
1095
+ compilationMode?: "infer" | "annotation" | "all";
1096
+ target?: "17" | "18" | "19";
1097
+ };
1093
1098
  /** 开发服务器配置 */
1094
1099
  dev?: DevServerConfig;
1095
1100
  /** 输出配置 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4399ywkf/core",
3
- "version": "5.1.4",
3
+ "version": "5.1.5",
4
4
  "description": "4399运维开发前端框架核心",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -49,10 +49,10 @@
49
49
  "release:major": "npm version major && npm publish --access public"
50
50
  },
51
51
  "dependencies": {
52
- "@rsdoctor/rspack-plugin": "^1.5.0",
53
- "@rspack/core": "^2.0.0",
54
- "@rspack/dev-server": "2.0.1",
55
- "@rspack/plugin-react-refresh": "^2.0.0",
52
+ "@rsdoctor/rspack-plugin": "^1.5.17",
53
+ "@rspack/core": "^2.1.0",
54
+ "@rspack/dev-server": "2.1.0",
55
+ "@rspack/plugin-react-refresh": "^2.0.2",
56
56
  "@svgr/webpack": "^8.1.0",
57
57
  "@tailwindcss/postcss": "^4.2.1",
58
58
  "assert": "^2.1.0",