@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/cli/index.js
CHANGED
|
@@ -2125,6 +2125,7 @@ function collectPluginNames(plugins) {
|
|
|
2125
2125
|
var defaultConfig = {
|
|
2126
2126
|
appName: "app",
|
|
2127
2127
|
appCName: "\u5E94\u7528",
|
|
2128
|
+
strictMode: true,
|
|
2128
2129
|
dev: {
|
|
2129
2130
|
port: 3e3,
|
|
2130
2131
|
host: "localhost",
|
|
@@ -2843,7 +2844,7 @@ export default routes;
|
|
|
2843
2844
|
|
|
2844
2845
|
// src/generator/templates/bootstrap.ts
|
|
2845
2846
|
function generateBootstrap(config, injections = {}) {
|
|
2846
|
-
const { appName, router } = config;
|
|
2847
|
+
const { appName, router, strictMode = true } = config;
|
|
2847
2848
|
const routerImport = router.conventional ? `import { createRouter } from "./routes";` : `import { createRouter } from "@/routes";`;
|
|
2848
2849
|
const imports = [
|
|
2849
2850
|
`import { bootstrap, type AppConfig } from "@4399ywkf/core/runtime";`,
|
|
@@ -2894,7 +2895,7 @@ export function createAppConfig(userConfig: Partial<AppConfig> = {}): AppConfig
|
|
|
2894
2895
|
router,
|
|
2895
2896
|
basename: effectiveBasename,
|
|
2896
2897
|
rootId: APP_NAME,
|
|
2897
|
-
strictMode:
|
|
2898
|
+
strictMode: ${strictMode},
|
|
2898
2899
|
antd: {
|
|
2899
2900
|
enabled: true,
|
|
2900
2901
|
},
|