@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.
- package/dist/cli/index.js +4 -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 +4 -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-C91lhskq.d.ts → schema-CuEnqbqQ.d.ts} +5 -0
- package/package.json +5 -5
package/dist/cli/index.js
CHANGED
|
@@ -2125,6 +2125,7 @@ var defaultConfig = {
|
|
|
2125
2125
|
appName: "app",
|
|
2126
2126
|
appCName: "\u5E94\u7528",
|
|
2127
2127
|
strictMode: true,
|
|
2128
|
+
reactCompiler: false,
|
|
2128
2129
|
dev: {
|
|
2129
2130
|
port: 3e3,
|
|
2130
2131
|
host: "127.0.0.1",
|
|
@@ -3440,7 +3441,7 @@ var coreNodeModules = join12(__dirname, "../../node_modules");
|
|
|
3440
3441
|
function createBaseConfig(config, cwd, options = {}) {
|
|
3441
3442
|
const isDev = options.isDev ?? process.env.NODE_ENV !== "production";
|
|
3442
3443
|
const { resolveApp } = createPathResolver(cwd);
|
|
3443
|
-
const { appName, appCName, output, html, alias: userAlias, microFrontend, router } = config;
|
|
3444
|
+
const { appName, appCName, output, html, alias: userAlias, microFrontend, router, reactCompiler } = config;
|
|
3444
3445
|
const ywkfOutputDir = resolveApp(".ywkf");
|
|
3445
3446
|
const defaultAlias = {
|
|
3446
3447
|
"@": resolveApp("src"),
|
|
@@ -3526,7 +3527,8 @@ function createBaseConfig(config, cwd, options = {}) {
|
|
|
3526
3527
|
runtime: "automatic",
|
|
3527
3528
|
development: isDev,
|
|
3528
3529
|
refresh: isDev
|
|
3529
|
-
}
|
|
3530
|
+
},
|
|
3531
|
+
...reactCompiler ? { reactCompiler } : {}
|
|
3530
3532
|
},
|
|
3531
3533
|
target: "es2015"
|
|
3532
3534
|
},
|