@4399ywkf/core 5.0.32 → 5.1.1
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 +5 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/config/index.js +1 -2
- package/dist/config/index.js.map +1 -1
- package/dist/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/dist/rspack/index.js +4 -6
- package/dist/rspack/index.js.map +1 -1
- package/package.json +8 -10
package/dist/rspack/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { RsdoctorRspackPlugin } from "@rsdoctor/rspack-plugin";
|
|
|
3
3
|
|
|
4
4
|
// src/rspack/dev.ts
|
|
5
5
|
import { createRequire as createRequire2 } from "module";
|
|
6
|
-
import
|
|
6
|
+
import { ReactRefreshRspackPlugin } from "@rspack/plugin-react-refresh";
|
|
7
7
|
import { merge } from "webpack-merge";
|
|
8
8
|
|
|
9
9
|
// src/config/loader.ts
|
|
@@ -375,8 +375,7 @@ var garfishPlugin = createPlugin((options = {}) => ({
|
|
|
375
375
|
if (!master) {
|
|
376
376
|
rspackConfig.output = {
|
|
377
377
|
...rspackConfig.output,
|
|
378
|
-
library: finalAppName,
|
|
379
|
-
libraryTarget: "umd",
|
|
378
|
+
library: { type: "umd", name: finalAppName },
|
|
380
379
|
globalObject: "window",
|
|
381
380
|
chunkLoadingGlobal: `garfish_${finalAppName}`
|
|
382
381
|
};
|
|
@@ -3320,9 +3319,8 @@ function createBaseConfig(config, cwd, options = {}) {
|
|
|
3320
3319
|
].filter(Boolean),
|
|
3321
3320
|
output: {
|
|
3322
3321
|
assetModuleFilename: "images/[hash][ext]",
|
|
3323
|
-
library: microFrontend.enabled ? `${appCName}-[name]` : void 0,
|
|
3322
|
+
library: microFrontend.enabled ? { type: "umd", name: `${appCName}-[name]` } : void 0,
|
|
3324
3323
|
chunkFilename: "[name].[contenthash].js",
|
|
3325
|
-
libraryTarget: microFrontend.enabled ? "umd" : void 0,
|
|
3326
3324
|
globalObject: microFrontend.enabled ? "window" : void 0,
|
|
3327
3325
|
chunkLoadingGlobal: microFrontend.enabled ? `chunk_global_${appName}` : void 0,
|
|
3328
3326
|
publicPath: output.publicPath ?? "/",
|
|
@@ -3543,7 +3541,7 @@ function createDevConfig(config, cwd) {
|
|
|
3543
3541
|
clean: false
|
|
3544
3542
|
},
|
|
3545
3543
|
stats: "errors-only",
|
|
3546
|
-
plugins: [new
|
|
3544
|
+
plugins: [new ReactRefreshRspackPlugin()],
|
|
3547
3545
|
devServer: {
|
|
3548
3546
|
host: dev.host,
|
|
3549
3547
|
port: dev.port,
|