@4399ywkf/core 5.0.27 → 5.0.29
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.
- package/dist/cli/index.js +2225 -108
- package/dist/cli/index.js.map +1 -1
- package/dist/config/index.d.ts +24 -4
- package/dist/config/index.js +2124 -6
- package/dist/config/index.js.map +1 -1
- package/dist/index.d.ts +5 -475
- package/dist/index.js +4291 -3860
- package/dist/index.js.map +1 -1
- package/dist/plugin/index.d.ts +3 -3
- package/dist/rspack/index.d.ts +2 -2
- package/dist/rspack/index.js +2129 -72
- package/dist/rspack/index.js.map +1 -1
- package/dist/runtime/index.d.ts +2 -2
- package/dist/schema-CMyZyL6E.d.ts +1153 -0
- package/dist/{types-DbUq-VY8.d.ts → types-BYqzyGAY.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/schema-runIYOB7.d.ts +0 -407
package/dist/config/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Y as YwkfConfig } from '../schema-
|
|
2
|
-
export { D as DevServerConfig, E as EnvConfig, H as HtmlConfig, M as MicroFrontendConfig, O as OutputConfig, P as PerformanceConfig, R as RouterConfig, S as StyleConfig, T as ToolsConfig, d as defaultConfig, a as defineConfig } from '../schema-
|
|
1
|
+
import { Y as YwkfConfig } from '../schema-CMyZyL6E.js';
|
|
2
|
+
export { B as BuiltinPluginConfig, D as DevServerConfig, E as EnvConfig, H as HtmlConfig, M as MicroFrontendConfig, O as OptionalPluginConfig, b as OutputConfig, P as PerformanceConfig, R as RouterConfig, S as StyleConfig, T as ToolsConfig, c as YwkfUserConfig, d as defaultConfig, a as defineConfig } from '../schema-CMyZyL6E.js';
|
|
3
3
|
import '@rspack/core';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-BYqzyGAY.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'react-router';
|
|
7
7
|
|
|
@@ -34,4 +34,24 @@ declare function createPathResolver(cwd: string): {
|
|
|
34
34
|
cwd: string;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
/**
|
|
38
|
+
* 配置标准化
|
|
39
|
+
*
|
|
40
|
+
* 将用户友好的快捷配置(plugin shorthands、智能字段推导)
|
|
41
|
+
* 转换为框架内部所需的标准化格式,同时保持完全向后兼容。
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 标准化用户配置
|
|
46
|
+
*
|
|
47
|
+
* 1. **智能字段推导**:html.title ← appCName, html.mountRoot ← appName
|
|
48
|
+
* 2. **内置插件自动注入**:reactQuery / zustand / tailwind 默认启用
|
|
49
|
+
* 3. **快捷配置转换**:`theme: { darkMode: true }` → `themePlugin({ darkMode: true })`
|
|
50
|
+
* 4. **去重合并**:快捷配置 + plugins 数组合并,同名插件以 plugins 中的为准
|
|
51
|
+
* 5. **清理快捷键**:从配置对象中移除已处理的快捷键
|
|
52
|
+
*
|
|
53
|
+
* 向后兼容:如果用户不使用任何快捷键,行为与之前完全一致。
|
|
54
|
+
*/
|
|
55
|
+
declare function normalizeConfig(input: YwkfConfig): YwkfConfig;
|
|
56
|
+
|
|
57
|
+
export { YwkfConfig, createPathResolver, findConfigFile, loadConfigFile, mergeConfig, normalizeConfig, resolveConfig };
|