@rspack-canary/binding 1.7.2-canary-6ee0d4b1-20260111191401 → 1.7.2-canary-cad7e7a3-20260113065652

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.
Files changed (2) hide show
  1. package/napi-binding.d.ts +33 -0
  2. package/package.json +11 -11
package/napi-binding.d.ts CHANGED
@@ -540,10 +540,13 @@ export declare enum BuiltinPluginName {
540
540
  SplitChunksPlugin = 'SplitChunksPlugin',
541
541
  RemoveDuplicateModulesPlugin = 'RemoveDuplicateModulesPlugin',
542
542
  ShareRuntimePlugin = 'ShareRuntimePlugin',
543
+ SharedUsedExportsOptimizerPlugin = 'SharedUsedExportsOptimizerPlugin',
543
544
  ContainerPlugin = 'ContainerPlugin',
544
545
  ContainerReferencePlugin = 'ContainerReferencePlugin',
545
546
  ProvideSharedPlugin = 'ProvideSharedPlugin',
546
547
  ConsumeSharedPlugin = 'ConsumeSharedPlugin',
548
+ CollectSharedEntryPlugin = 'CollectSharedEntryPlugin',
549
+ SharedContainerPlugin = 'SharedContainerPlugin',
547
550
  ModuleFederationRuntimePlugin = 'ModuleFederationRuntimePlugin',
548
551
  ModuleFederationManifestPlugin = 'ModuleFederationManifestPlugin',
549
552
  NamedModuleIdsPlugin = 'NamedModuleIdsPlugin',
@@ -1839,6 +1842,11 @@ export interface RawCircularDependencyRspackPluginOptions {
1839
1842
  onEnd?: () => void
1840
1843
  }
1841
1844
 
1845
+ export interface RawCollectShareEntryPluginOptions {
1846
+ consumes: Array<RawConsumeOptions>
1847
+ filename?: string
1848
+ }
1849
+
1842
1850
  export interface RawCompilerPlatform {
1843
1851
  web?: boolean | null
1844
1852
  browser?: boolean | null
@@ -1859,6 +1867,7 @@ export interface RawConsumeOptions {
1859
1867
  strictVersion: boolean
1860
1868
  singleton: boolean
1861
1869
  eager: boolean
1870
+ treeShakingMode?: string
1862
1871
  }
1863
1872
 
1864
1873
  export interface RawConsumeSharedPluginOptions {
@@ -2594,6 +2603,12 @@ export interface RawOptimizationOptions {
2594
2603
  avoidEntryIife: boolean
2595
2604
  }
2596
2605
 
2606
+ export interface RawOptimizeSharedConfig {
2607
+ shareKey: string
2608
+ treeShaking: boolean
2609
+ usedExports?: Array<string>
2610
+ }
2611
+
2597
2612
  export interface RawOptions {
2598
2613
  name?: string
2599
2614
  mode?: undefined | 'production' | 'development' | 'none'
@@ -2694,6 +2709,7 @@ export interface RawProvideOptions {
2694
2709
  singleton?: boolean
2695
2710
  requiredVersion?: string | false | undefined
2696
2711
  strictVersion?: boolean
2712
+ treeShakingMode?: string
2697
2713
  }
2698
2714
 
2699
2715
  export interface RawRelated {
@@ -2831,6 +2847,21 @@ export interface RawRuntimeChunkOptions {
2831
2847
  name: string | ((entrypoint: { name: string }) => string)
2832
2848
  }
2833
2849
 
2850
+ export interface RawSharedContainerPluginOptions {
2851
+ name: string
2852
+ request: string
2853
+ version: string
2854
+ fileName?: string
2855
+ library: JsLibraryOptions
2856
+ }
2857
+
2858
+ export interface RawSharedUsedExportsOptimizerPluginOptions {
2859
+ shared: Array<RawOptimizeSharedConfig>
2860
+ injectTreeShakingUsedExports?: boolean
2861
+ manifestFileName?: string
2862
+ statsFileName?: string
2863
+ }
2864
+
2834
2865
  export interface RawSizeLimitsPluginOptions {
2835
2866
  assetFilter?: (assetFilename: string) => boolean
2836
2867
  hints?: "error" | "warning"
@@ -2868,6 +2899,8 @@ export interface RawSplitChunksOptions {
2868
2899
  export interface RawStatsBuildInfo {
2869
2900
  buildVersion: string
2870
2901
  buildName?: string
2902
+ target?: Array<string>
2903
+ plugins?: Array<string>
2871
2904
  }
2872
2905
 
2873
2906
  export interface RawStatsOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/binding",
3
- "version": "1.7.2-canary-6ee0d4b1-20260111191401",
3
+ "version": "1.7.2-canary-cad7e7a3-20260113065652",
4
4
  "license": "MIT",
5
5
  "description": "Node binding for rspack",
6
6
  "main": "binding.js",
@@ -51,16 +51,16 @@
51
51
  }
52
52
  },
53
53
  "optionalDependencies": {
54
- "@rspack/binding-win32-arm64-msvc": "npm:@rspack-canary/binding-win32-arm64-msvc@1.7.2-canary-6ee0d4b1-20260111191401",
55
- "@rspack/binding-linux-arm64-musl": "npm:@rspack-canary/binding-linux-arm64-musl@1.7.2-canary-6ee0d4b1-20260111191401",
56
- "@rspack/binding-darwin-arm64": "npm:@rspack-canary/binding-darwin-arm64@1.7.2-canary-6ee0d4b1-20260111191401",
57
- "@rspack/binding-linux-arm64-gnu": "npm:@rspack-canary/binding-linux-arm64-gnu@1.7.2-canary-6ee0d4b1-20260111191401",
58
- "@rspack/binding-darwin-x64": "npm:@rspack-canary/binding-darwin-x64@1.7.2-canary-6ee0d4b1-20260111191401",
59
- "@rspack/binding-win32-ia32-msvc": "npm:@rspack-canary/binding-win32-ia32-msvc@1.7.2-canary-6ee0d4b1-20260111191401",
60
- "@rspack/binding-wasm32-wasi": "npm:@rspack-canary/binding-wasm32-wasi@1.7.2-canary-6ee0d4b1-20260111191401",
61
- "@rspack/binding-linux-x64-gnu": "npm:@rspack-canary/binding-linux-x64-gnu@1.7.2-canary-6ee0d4b1-20260111191401",
62
- "@rspack/binding-win32-x64-msvc": "npm:@rspack-canary/binding-win32-x64-msvc@1.7.2-canary-6ee0d4b1-20260111191401",
63
- "@rspack/binding-linux-x64-musl": "npm:@rspack-canary/binding-linux-x64-musl@1.7.2-canary-6ee0d4b1-20260111191401"
54
+ "@rspack/binding-darwin-arm64": "npm:@rspack-canary/binding-darwin-arm64@1.7.2-canary-cad7e7a3-20260113065652",
55
+ "@rspack/binding-linux-arm64-gnu": "npm:@rspack-canary/binding-linux-arm64-gnu@1.7.2-canary-cad7e7a3-20260113065652",
56
+ "@rspack/binding-linux-arm64-musl": "npm:@rspack-canary/binding-linux-arm64-musl@1.7.2-canary-cad7e7a3-20260113065652",
57
+ "@rspack/binding-wasm32-wasi": "npm:@rspack-canary/binding-wasm32-wasi@1.7.2-canary-cad7e7a3-20260113065652",
58
+ "@rspack/binding-win32-arm64-msvc": "npm:@rspack-canary/binding-win32-arm64-msvc@1.7.2-canary-cad7e7a3-20260113065652",
59
+ "@rspack/binding-win32-ia32-msvc": "npm:@rspack-canary/binding-win32-ia32-msvc@1.7.2-canary-cad7e7a3-20260113065652",
60
+ "@rspack/binding-darwin-x64": "npm:@rspack-canary/binding-darwin-x64@1.7.2-canary-cad7e7a3-20260113065652",
61
+ "@rspack/binding-win32-x64-msvc": "npm:@rspack-canary/binding-win32-x64-msvc@1.7.2-canary-cad7e7a3-20260113065652",
62
+ "@rspack/binding-linux-x64-gnu": "npm:@rspack-canary/binding-linux-x64-gnu@1.7.2-canary-cad7e7a3-20260113065652",
63
+ "@rspack/binding-linux-x64-musl": "npm:@rspack-canary/binding-linux-x64-musl@1.7.2-canary-cad7e7a3-20260113065652"
64
64
  },
65
65
  "scripts": {
66
66
  "build:dev": "node scripts/build.js",