@4399ywkf/core 5.0.30 → 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 +8 -19
- package/dist/cli/index.js.map +1 -1
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +6 -17
- package/dist/config/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -19
- 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 +8 -19
- 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/config/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Y as YwkfConfig } from '../schema-
|
|
2
|
-
export { B as BuiltinPluginConfig, D as DevServerConfig, E as EnvConfig, H as HtmlConfig, M as MicroFrontendConfig, O as OptionalPluginConfig, b as OutputConfig, P as PerformanceConfig, R as RouterConfig, S as StyleConfig, T as ToolsConfig, c as YwkfUserConfig, d as defaultConfig, a as defineConfig } from '../schema-
|
|
1
|
+
import { Y as YwkfConfig } from '../schema-C91lhskq.js';
|
|
2
|
+
export { B as BuiltinPluginConfig, D as DevServerConfig, E as EnvConfig, H as HtmlConfig, M as MicroFrontendConfig, O as OptionalPluginConfig, b as OutputConfig, P as PerformanceConfig, R as RouterConfig, S as StyleConfig, T as ToolsConfig, c as YwkfUserConfig, d as defaultConfig, a as defineConfig } from '../schema-C91lhskq.js';
|
|
3
3
|
import '@rspack/core';
|
|
4
4
|
import '../types-BYqzyGAY.js';
|
|
5
5
|
import 'react';
|
package/dist/config/index.js
CHANGED
|
@@ -1297,18 +1297,12 @@ var themePlugin = createPlugin((options = {}) => ({
|
|
|
1297
1297
|
order: 10,
|
|
1298
1298
|
}`;
|
|
1299
1299
|
if (code.includes("providers: []")) {
|
|
1300
|
-
code = code.replace(
|
|
1301
|
-
"providers: []",
|
|
1302
|
-
`providers: [
|
|
1300
|
+
code = code.replace("providers: []", `providers: [
|
|
1303
1301
|
${providerEntry},
|
|
1304
|
-
]`
|
|
1305
|
-
);
|
|
1302
|
+
]`);
|
|
1306
1303
|
} else if (code.includes("providers: [")) {
|
|
1307
|
-
code = code.replace(
|
|
1308
|
-
|
|
1309
|
-
`providers: [
|
|
1310
|
-
${providerEntry},`
|
|
1311
|
-
);
|
|
1304
|
+
code = code.replace("providers: [", `providers: [
|
|
1305
|
+
${providerEntry},`);
|
|
1312
1306
|
}
|
|
1313
1307
|
if (!code.includes("import React")) {
|
|
1314
1308
|
code = code.replace(
|
|
@@ -1341,9 +1335,7 @@ function generateThemeProvider(opts) {
|
|
|
1341
1335
|
sections.push(`// \u6B64\u6587\u4EF6\u7531 @4399ywkf/plugin-theme v3 \u81EA\u52A8\u751F\u6210\uFF0C\u8BF7\u52FF\u624B\u52A8\u4FEE\u6539`);
|
|
1342
1336
|
sections.push(buildImports({ globalReset, cssVar, scopePopupContainer, locale }));
|
|
1343
1337
|
sections.push(TYPES_CODE);
|
|
1344
|
-
sections.push(
|
|
1345
|
-
buildStoreCode({ defaultAppearance, primaryColor, neutralColor, locale })
|
|
1346
|
-
);
|
|
1338
|
+
sections.push(buildStoreCode({ defaultAppearance, primaryColor, neutralColor, locale }));
|
|
1347
1339
|
sections.push(HOOKS_CODE);
|
|
1348
1340
|
if (globalReset) sections.push(GLOBAL_RESET_CODE);
|
|
1349
1341
|
if (cssVar) sections.push(buildCssVarSyncCode());
|
|
@@ -1540,10 +1532,6 @@ const GlobalReset = createGlobalStyle(({ theme }) => css\`
|
|
|
1540
1532
|
code {
|
|
1541
1533
|
font-family: \${theme.fontFamilyCode} !important;
|
|
1542
1534
|
}
|
|
1543
|
-
|
|
1544
|
-
::selection {
|
|
1545
|
-
-webkit-text-fill-color: unset !important;
|
|
1546
|
-
}
|
|
1547
1535
|
\`);`;
|
|
1548
1536
|
function buildCssVarSyncCode() {
|
|
1549
1537
|
return `
|
|
@@ -2127,6 +2115,7 @@ function defineConfig(config) {
|
|
|
2127
2115
|
var defaultConfig = {
|
|
2128
2116
|
appName: "app",
|
|
2129
2117
|
appCName: "\u5E94\u7528",
|
|
2118
|
+
strictMode: true,
|
|
2130
2119
|
dev: {
|
|
2131
2120
|
port: 3e3,
|
|
2132
2121
|
host: "localhost",
|