@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.
- package/dist/cli/index.js +3 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +1 -0
- package/dist/config/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/plugin/index.d.ts +2 -2
- package/dist/rspack/index.d.ts +1 -1
- package/dist/rspack/index.js +3 -2
- package/dist/rspack/index.js.map +1 -1
- package/dist/{schema-CMyZyL6E.d.ts → schema-C91lhskq.d.ts} +2 -0
- package/package.json +1 -1
package/dist/plugin/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Q as YwkfPlugin, e as PluginHooks, Y as YwkfConfig, f as PluginConfig, U as RouteItem } from '../schema-
|
|
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-
|
|
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';
|
package/dist/rspack/index.d.ts
CHANGED
package/dist/rspack/index.js
CHANGED
|
@@ -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:
|
|
2580
|
+
strictMode: ${strictMode},
|
|
2580
2581
|
antd: {
|
|
2581
2582
|
enabled: true,
|
|
2582
2583
|
},
|