@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 CHANGED
@@ -380,8 +380,7 @@ var garfishPlugin = createPlugin((options = {}) => ({
380
380
  if (!master) {
381
381
  rspackConfig.output = {
382
382
  ...rspackConfig.output,
383
- library: finalAppName,
384
- libraryTarget: "umd",
383
+ library: { type: "umd", name: finalAppName },
385
384
  globalObject: "window",
386
385
  chunkLoadingGlobal: `garfish_${finalAppName}`
387
386
  };
@@ -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
@@ -3638,9 +3637,8 @@ function createBaseConfig(config, cwd, options = {}) {
3638
3637
  ].filter(Boolean),
3639
3638
  output: {
3640
3639
  assetModuleFilename: "images/[hash][ext]",
3641
- library: microFrontend.enabled ? `${appCName}-[name]` : void 0,
3640
+ library: microFrontend.enabled ? { type: "umd", name: `${appCName}-[name]` } : void 0,
3642
3641
  chunkFilename: "[name].[contenthash].js",
3643
- libraryTarget: microFrontend.enabled ? "umd" : void 0,
3644
3642
  globalObject: microFrontend.enabled ? "window" : void 0,
3645
3643
  chunkLoadingGlobal: microFrontend.enabled ? `chunk_global_${appName}` : void 0,
3646
3644
  publicPath: output.publicPath ?? "/",
@@ -3861,7 +3859,7 @@ function createDevConfig(config, cwd) {
3861
3859
  clean: false
3862
3860
  },
3863
3861
  stats: "errors-only",
3864
- plugins: [new ReactRefreshPlugin()],
3862
+ plugins: [new ReactRefreshRspackPlugin()],
3865
3863
  devServer: {
3866
3864
  host: dev2.host,
3867
3865
  port: dev2.port,
@@ -4242,7 +4240,6 @@ var DevPrinter = class {
4242
4240
  */
4243
4241
  printBuildStart() {
4244
4242
  this.startTime = Date.now();
4245
- this.compileDone = false;
4246
4243
  const label = chalk.gray("start");
4247
4244
  console.log(` ${label} build started...`);
4248
4245
  }
@@ -4337,7 +4334,7 @@ var DevPrinter = class {
4337
4334
  }
4338
4335
  };
4339
4336
  function createProgressHandler(printer) {
4340
- return (percent, message, ..._details) => {
4337
+ return (percent, message) => {
4341
4338
  printer.updateProgress(percent, message);
4342
4339
  };
4343
4340
  }