@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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { G as GeneratorContext, e as PluginHooks, Y as YwkfConfig, f as PluginConfig } from './schema-C91lhskq.js';
2
- export { A as AnalyticsPluginOptions, h as BiomePluginOptions, j as BrowserCheckPluginOptions, k as BrowserMinVersions, y as BuildHooks, C as CodeInjection, D as DevServerConfig, E as EnvConfig, m as GarfishPluginOptions, F as GeneratedFile, J as GeneratorHooks, H as HtmlConfig, I as I18nPluginOptions, M as MicroFrontendConfig, q as MockPluginOptions, b as OutputConfig, P as PerformanceConfig, K as PluginContext, s as ReactQueryPluginOptions, R as RouterConfig, L as RouterHooks, N as RuntimeHooks, S as StyleConfig, u as TailwindPluginOptions, v as ThemePluginOptions, T as ToolsConfig, Q as YwkfPlugin, Z as ZustandPluginOptions, g as analyticsPlugin, i as biomePlugin, l as browserCheckPlugin, d as defaultConfig, a as defineConfig, n as garfishPlugin, o as getDefaultBiomeConfig, p as i18nPlugin, r as mockPlugin, t as reactQueryPlugin, w as tailwindPlugin, x as themePlugin, z as zustandPlugin } from './schema-C91lhskq.js';
1
+ import { G as GeneratorContext, e as PluginHooks, Y as YwkfConfig, f as PluginConfig } from './schema-CuEnqbqQ.js';
2
+ export { A as AnalyticsPluginOptions, h as BiomePluginOptions, j as BrowserCheckPluginOptions, k as BrowserMinVersions, y as BuildHooks, C as CodeInjection, D as DevServerConfig, E as EnvConfig, m as GarfishPluginOptions, F as GeneratedFile, J as GeneratorHooks, H as HtmlConfig, I as I18nPluginOptions, M as MicroFrontendConfig, q as MockPluginOptions, b as OutputConfig, P as PerformanceConfig, K as PluginContext, s as ReactQueryPluginOptions, R as RouterConfig, L as RouterHooks, N as RuntimeHooks, S as StyleConfig, u as TailwindPluginOptions, v as ThemePluginOptions, T as ToolsConfig, Q as YwkfPlugin, Z as ZustandPluginOptions, g as analyticsPlugin, i as biomePlugin, l as browserCheckPlugin, d as defaultConfig, a as defineConfig, n as garfishPlugin, o as getDefaultBiomeConfig, p as i18nPlugin, r as mockPlugin, t as reactQueryPlugin, w as tailwindPlugin, x as themePlugin, z as zustandPlugin } from './schema-CuEnqbqQ.js';
3
3
  import { Compiler } from '@rspack/core';
4
4
  export { PluginManager, createPlugin, definePlugin } from './plugin/index.js';
5
5
  export { ConventionalRouteGenerator, ConventionalRoutePlugin, ConventionalRoutePluginOptions, GeneratorOptions, RouteConfig, generateConventionalRoutes } from './router/index.js';
package/dist/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",
@@ -3443,7 +3444,7 @@ var coreNodeModules = join12(__dirname, "../../node_modules");
3443
3444
  function createBaseConfig(config, cwd, options = {}) {
3444
3445
  const isDev = options.isDev ?? process.env.NODE_ENV !== "production";
3445
3446
  const { resolveApp } = createPathResolver(cwd);
3446
- const { appName, appCName, output, html, alias: userAlias, microFrontend, router } = config;
3447
+ const { appName, appCName, output, html, alias: userAlias, microFrontend, router, reactCompiler } = config;
3447
3448
  const ywkfOutputDir = resolveApp(".ywkf");
3448
3449
  const defaultAlias = {
3449
3450
  "@": resolveApp("src"),
@@ -3529,7 +3530,8 @@ function createBaseConfig(config, cwd, options = {}) {
3529
3530
  runtime: "automatic",
3530
3531
  development: isDev,
3531
3532
  refresh: isDev
3532
- }
3533
+ },
3534
+ ...reactCompiler ? { reactCompiler } : {}
3533
3535
  },
3534
3536
  target: "es2015"
3535
3537
  },