@4399ywkf/core 5.0.31 → 5.0.32

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.
@@ -1,5 +1,5 @@
1
- import { Q as YwkfPlugin, e as PluginHooks, Y as YwkfConfig, f as PluginConfig, U as RouteItem } from '../schema-CMyZyL6E.js';
2
- export { y as BuildHooks, C as CodeInjection, V as DefinePlugin, F as GeneratedFile, G as GeneratorContext, J as GeneratorHooks, W as PluginAPI, K as PluginContext, X as PluginLogger, L as RouterHooks, N as RuntimeHooks } from '../schema-CMyZyL6E.js';
1
+ import { Q as YwkfPlugin, e as PluginHooks, Y as YwkfConfig, f as PluginConfig, U as RouteItem } from '../schema-C91lhskq.js';
2
+ export { y as BuildHooks, C as CodeInjection, V as DefinePlugin, F as GeneratedFile, G as GeneratorContext, J as GeneratorHooks, W as PluginAPI, K as PluginContext, X as PluginLogger, L as RouterHooks, N as RuntimeHooks } from '../schema-C91lhskq.js';
3
3
  import { Configuration } from '@rspack/core';
4
4
  import { a as AppConfig, P as ProviderConfig } from '../types-BYqzyGAY.js';
5
5
  import 'react';
@@ -1,5 +1,5 @@
1
1
  import { Configuration } from '@rspack/core';
2
- import { Y as YwkfConfig } from '../schema-CMyZyL6E.js';
2
+ import { Y as YwkfConfig } from '../schema-C91lhskq.js';
3
3
  import '../types-BYqzyGAY.js';
4
4
  import 'react';
5
5
  import 'react-router';
@@ -2061,6 +2061,7 @@ var ALL_SHORTHAND_KEYS = /* @__PURE__ */ new Set([
2061
2061
  var defaultConfig = {
2062
2062
  appName: "app",
2063
2063
  appCName: "\u5E94\u7528",
2064
+ strictMode: true,
2064
2065
  dev: {
2065
2066
  port: 3e3,
2066
2067
  host: "localhost",
@@ -2525,7 +2526,7 @@ export default routes;
2525
2526
 
2526
2527
  // src/generator/templates/bootstrap.ts
2527
2528
  function generateBootstrap(config, injections = {}) {
2528
- const { appName, router } = config;
2529
+ const { appName, router, strictMode = true } = config;
2529
2530
  const routerImport = router.conventional ? `import { createRouter } from "./routes";` : `import { createRouter } from "@/routes";`;
2530
2531
  const imports = [
2531
2532
  `import { bootstrap, type AppConfig } from "@4399ywkf/core/runtime";`,
@@ -2576,7 +2577,7 @@ export function createAppConfig(userConfig: Partial<AppConfig> = {}): AppConfig
2576
2577
  router,
2577
2578
  basename: effectiveBasename,
2578
2579
  rootId: APP_NAME,
2579
- strictMode: true,
2580
+ strictMode: ${strictMode},
2580
2581
  antd: {
2581
2582
  enabled: true,
2582
2583
  },