@rsbuild/webpack 1.0.1-beta.6 → 1.0.1-beta.7

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.cjs CHANGED
@@ -2460,13 +2460,15 @@ var init_build = __esm({
2460
2460
  let isFirstCompile = true;
2461
2461
  await context.hooks.onBeforeBuild.call({
2462
2462
  bundlerConfigs,
2463
- environments: context.environments
2463
+ environments: context.environments,
2464
+ isWatch: Boolean(watch)
2464
2465
  });
2465
2466
  const onDone = async (stats) => {
2466
2467
  const p = context.hooks.onAfterBuild.call({
2467
2468
  isFirstCompile,
2468
2469
  stats,
2469
- environments: context.environments
2470
+ environments: context.environments,
2471
+ isWatch: Boolean(watch)
2470
2472
  });
2471
2473
  isFirstCompile = false;
2472
2474
  await p;
package/dist/index.js CHANGED
@@ -46,11 +46,11 @@ var __publicField = (obj, key, value) => {
46
46
  return value;
47
47
  };
48
48
 
49
- // ../../../node_modules/.pnpm/@modern-js+module-tools@2.56.0_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js
49
+ // ../../../node_modules/.pnpm/@modern-js+module-tools@2.56.2_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js
50
50
  import { fileURLToPath } from "url";
51
51
  import path from "path";
52
52
  var init_esm = __esm({
53
- "../../../node_modules/.pnpm/@modern-js+module-tools@2.56.0_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js"() {
53
+ "../../../node_modules/.pnpm/@modern-js+module-tools@2.56.2_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js"() {
54
54
  "use strict";
55
55
  }
56
56
  });
@@ -2509,13 +2509,15 @@ var init_build = __esm({
2509
2509
  let isFirstCompile = true;
2510
2510
  await context.hooks.onBeforeBuild.call({
2511
2511
  bundlerConfigs,
2512
- environments: context.environments
2512
+ environments: context.environments,
2513
+ isWatch: Boolean(watch)
2513
2514
  });
2514
2515
  const onDone = async (stats) => {
2515
2516
  const p = context.hooks.onAfterBuild.call({
2516
2517
  isFirstCompile,
2517
2518
  stats,
2518
- environments: context.environments
2519
+ environments: context.environments,
2520
+ isWatch: Boolean(watch)
2519
2521
  });
2520
2522
  isFirstCompile = false;
2521
2523
  await p;
@@ -1,10 +1,10 @@
1
- import { type CreateRsbuildOptions, type PluginManager } from '@rsbuild/core';
1
+ import { type PluginManager, type ResolvedCreateRsbuildOptions } from '@rsbuild/core';
2
2
  import { type InternalContext } from './shared';
3
3
  import type { WebpackConfig } from './types';
4
4
  export type InitConfigsOptions = {
5
5
  context: InternalContext;
6
6
  pluginManager: PluginManager;
7
- rsbuildOptions: Required<CreateRsbuildOptions>;
7
+ rsbuildOptions: ResolvedCreateRsbuildOptions;
8
8
  };
9
9
  export declare function initConfigs({ context, pluginManager, rsbuildOptions, }: InitConfigsOptions): Promise<{
10
10
  webpackConfigs: WebpackConfig[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/webpack",
3
- "version": "1.0.1-beta.6",
3
+ "version": "1.0.1-beta.7",
4
4
  "homepage": "https://rsbuild.dev",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  "reduce-configs": "^1.0.0",
31
31
  "tsconfig-paths-webpack-plugin": "4.1.0",
32
32
  "webpack": "^5.93.0",
33
- "@rsbuild/core": "1.0.1-beta.6"
33
+ "@rsbuild/core": "1.0.1-beta.7"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "18.x",
@@ -38,7 +38,7 @@
38
38
  "cli-truncate": "2.1.0",
39
39
  "patch-console": "1.0.0",
40
40
  "typescript": "^5.5.2",
41
- "@scripts/test-helper": "1.0.1-beta.6"
41
+ "@scripts/test-helper": "1.0.1-beta.7"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public",