@rspack/core 1.0.1 → 1.0.3

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.
@@ -1,4 +1,4 @@
1
- import { type JsChunkGroup, type JsCompilation } from "@rspack/binding";
1
+ import { type JsChunkGroup, type JsChunkGroupOrigin, type JsCompilation } from "@rspack/binding";
2
2
  import { Chunk } from "./Chunk";
3
3
  export declare class ChunkGroup {
4
4
  #private;
@@ -10,6 +10,7 @@ export declare class ChunkGroup {
10
10
  get chunks(): ReadonlyArray<Chunk>;
11
11
  get index(): Readonly<number | undefined>;
12
12
  get name(): Readonly<string | undefined>;
13
+ get origins(): ReadonlyArray<JsChunkGroupOrigin>;
13
14
  /**
14
15
  * Note: This is not a webpack public API, maybe removed in future.
15
16
  *
@@ -52,6 +52,9 @@ class ChunkGroup {
52
52
  get name() {
53
53
  return __classPrivateFieldGet(this, _ChunkGroup_inner, "f").name;
54
54
  }
55
+ get origins() {
56
+ return __classPrivateFieldGet(this, _ChunkGroup_inner, "f").origins;
57
+ }
55
58
  /**
56
59
  * Note: This is not a webpack public API, maybe removed in future.
57
60
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/core",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "The fast Rust-based web bundler with webpack-compatible API",
@@ -51,7 +51,7 @@
51
51
  "tsc-alias": "^1.8.8",
52
52
  "typescript": "5.0.2",
53
53
  "watchpack": "^2.4.0",
54
- "webpack-dev-server": "^5.0.4",
54
+ "webpack-dev-server": "5.0.4",
55
55
  "webpack-sources": "3.2.3",
56
56
  "zod": "^3.23.8",
57
57
  "zod-validation-error": "3.3.1"
@@ -60,7 +60,7 @@
60
60
  "@module-federation/runtime-tools": "0.5.1",
61
61
  "@rspack/lite-tapable": "1.0.0",
62
62
  "caniuse-lite": "^1.0.30001616",
63
- "@rspack/binding": "1.0.1"
63
+ "@rspack/binding": "1.0.3"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@swc/helpers": ">=0.5.1"