@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/index.js CHANGED
@@ -377,8 +377,7 @@ var garfishPlugin = createPlugin((options = {}) => ({
377
377
  if (!master) {
378
378
  rspackConfig.output = {
379
379
  ...rspackConfig.output,
380
- library: finalAppName,
381
- libraryTarget: "umd",
380
+ library: { type: "umd", name: finalAppName },
382
381
  globalObject: "window",
383
382
  chunkLoadingGlobal: `garfish_${finalAppName}`
384
383
  };
@@ -2475,7 +2474,7 @@ import { RsdoctorRspackPlugin } from "@rsdoctor/rspack-plugin";
2475
2474
 
2476
2475
  // src/rspack/dev.ts
2477
2476
  import { createRequire as createRequire2 } from "module";
2478
- import ReactRefreshPlugin from "@rspack/plugin-react-refresh";
2477
+ import { ReactRefreshRspackPlugin } from "@rspack/plugin-react-refresh";
2479
2478
  import { merge } from "webpack-merge";
2480
2479
 
2481
2480
  // src/rspack/base.ts
@@ -3641,9 +3640,8 @@ function createBaseConfig(config, cwd, options = {}) {
3641
3640
  ].filter(Boolean),
3642
3641
  output: {
3643
3642
  assetModuleFilename: "images/[hash][ext]",
3644
- library: microFrontend.enabled ? `${appCName}-[name]` : void 0,
3643
+ library: microFrontend.enabled ? { type: "umd", name: `${appCName}-[name]` } : void 0,
3645
3644
  chunkFilename: "[name].[contenthash].js",
3646
- libraryTarget: microFrontend.enabled ? "umd" : void 0,
3647
3645
  globalObject: microFrontend.enabled ? "window" : void 0,
3648
3646
  chunkLoadingGlobal: microFrontend.enabled ? `chunk_global_${appName}` : void 0,
3649
3647
  publicPath: output.publicPath ?? "/",
@@ -3864,7 +3862,7 @@ function createDevConfig(config, cwd) {
3864
3862
  clean: false
3865
3863
  },
3866
3864
  stats: "errors-only",
3867
- plugins: [new ReactRefreshPlugin()],
3865
+ plugins: [new ReactRefreshRspackPlugin()],
3868
3866
  devServer: {
3869
3867
  host: dev2.host,
3870
3868
  port: dev2.port,
@@ -4245,7 +4243,6 @@ var DevPrinter = class {
4245
4243
  */
4246
4244
  printBuildStart() {
4247
4245
  this.startTime = Date.now();
4248
- this.compileDone = false;
4249
4246
  const label = chalk.gray("start");
4250
4247
  console.log(` ${label} build started...`);
4251
4248
  }
@@ -4340,7 +4337,7 @@ var DevPrinter = class {
4340
4337
  }
4341
4338
  };
4342
4339
  function createProgressHandler(printer) {
4343
- return (percent, message, ..._details) => {
4340
+ return (percent, message) => {
4344
4341
  printer.updateProgress(percent, message);
4345
4342
  };
4346
4343
  }