@4399ywkf/core 5.0.11 → 5.0.12

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
@@ -2672,6 +2672,7 @@ export async function initGarfishMaster(): Promise<void> {
2672
2672
  // src/plugin/builtin/tailwind.ts
2673
2673
  import { existsSync as existsSync7, writeFileSync as writeFileSync3 } from "fs";
2674
2674
  import { join as join7 } from "path";
2675
+ import { rspack as rspack3 } from "@rspack/core";
2675
2676
  var tailwindPlugin = createPlugin((options = {}) => ({
2676
2677
  name: "@4399ywkf/plugin-tailwind",
2677
2678
  version: "1.0.0",
@@ -2695,7 +2696,7 @@ var tailwindPlugin = createPlugin((options = {}) => ({
2695
2696
  const tailwindRule = {
2696
2697
  test: /tailwind\.css$/,
2697
2698
  use: [
2698
- isProd ? "mini-css-extract-plugin/loader" : "style-loader",
2699
+ isProd ? rspack3.CssExtractRspackPlugin.loader : "style-loader",
2699
2700
  "css-loader",
2700
2701
  {
2701
2702
  loader: "postcss-loader",
@@ -3578,7 +3579,7 @@ export type { StateCreator, StoreApi } from "zustand";
3578
3579
  }
3579
3580
 
3580
3581
  // src/cli/dev.ts
3581
- import { rspack as rspack3 } from "@rspack/core";
3582
+ import { rspack as rspack4 } from "@rspack/core";
3582
3583
  import { RspackDevServer } from "@rspack/dev-server";
3583
3584
  import chalk2 from "chalk";
3584
3585
 
@@ -3889,7 +3890,7 @@ async function dev(options = {}) {
3889
3890
  printer.updateProgress(0, "preparing");
3890
3891
  rspackConfig.plugins = rspackConfig.plugins || [];
3891
3892
  rspackConfig.plugins.push(
3892
- new rspack3.ProgressPlugin(createProgressHandler(printer))
3893
+ new rspack4.ProgressPlugin(createProgressHandler(printer))
3893
3894
  );
3894
3895
  rspackConfig.stats = "none";
3895
3896
  rspackConfig.infrastructureLogging = { level: "none" };
@@ -3903,7 +3904,7 @@ async function dev(options = {}) {
3903
3904
  progress: false
3904
3905
  };
3905
3906
  }
3906
- const compiler = rspack3(rspackConfig);
3907
+ const compiler = rspack4(rspackConfig);
3907
3908
  compiler.hooks.done.tap("ywkf-dev-printer", (stats) => {
3908
3909
  const hasErrors = stats.hasErrors();
3909
3910
  if (hasErrors) {
@@ -3953,7 +3954,7 @@ async function dev(options = {}) {
3953
3954
  }
3954
3955
 
3955
3956
  // src/cli/build.ts
3956
- import { rspack as rspack4 } from "@rspack/core";
3957
+ import { rspack as rspack5 } from "@rspack/core";
3957
3958
  import chalk3 from "chalk";
3958
3959
  function formatSize(bytes) {
3959
3960
  if (bytes < 1024) return `${bytes} B`;
@@ -4014,11 +4015,11 @@ async function build(options = {}) {
4014
4015
  printer.updateProgress(0, "preparing");
4015
4016
  rspackConfig.plugins = rspackConfig.plugins || [];
4016
4017
  rspackConfig.plugins.push(
4017
- new rspack4.ProgressPlugin(createProgressHandler(printer))
4018
+ new rspack5.ProgressPlugin(createProgressHandler(printer))
4018
4019
  );
4019
4020
  rspackConfig.stats = "none";
4020
4021
  rspackConfig.infrastructureLogging = { level: "none" };
4021
- const compiler = rspack4(rspackConfig);
4022
+ const compiler = rspack5(rspackConfig);
4022
4023
  const stats = await new Promise((resolve4, reject) => {
4023
4024
  compiler.run((err, stats2) => {
4024
4025
  if (err) {