@rspack/binding 0.2.11 → 0.2.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.
Files changed (2) hide show
  1. package/binding.d.ts +25 -0
  2. package/package.json +10 -10
package/binding.d.ts CHANGED
@@ -101,6 +101,8 @@ export interface BeforeResolveData {
101
101
  context: string
102
102
  }
103
103
 
104
+ export function cleanupCustomTraceSubscriber(): void
105
+
104
106
  export interface FactoryMeta {
105
107
  sideEffects?: boolean
106
108
  }
@@ -190,11 +192,19 @@ export interface JsCompatSource {
190
192
  export interface JsHooks {
191
193
  processAssetsStageAdditional: (...args: any[]) => any
192
194
  processAssetsStagePreProcess: (...args: any[]) => any
195
+ processAssetsStageDerived: (...args: any[]) => any
193
196
  processAssetsStageAdditions: (...args: any[]) => any
194
197
  processAssetsStageNone: (...args: any[]) => any
198
+ processAssetsStageOptimize: (...args: any[]) => any
199
+ processAssetsStageOptimizeCount: (...args: any[]) => any
200
+ processAssetsStageOptimizeCompatibility: (...args: any[]) => any
201
+ processAssetsStageOptimizeSize: (...args: any[]) => any
202
+ processAssetsStageDevTooling: (...args: any[]) => any
195
203
  processAssetsStageOptimizeInline: (...args: any[]) => any
196
204
  processAssetsStageSummarize: (...args: any[]) => any
197
205
  processAssetsStageOptimizeHash: (...args: any[]) => any
206
+ processAssetsStageOptimizeTransfer: (...args: any[]) => any
207
+ processAssetsStageAnalyse: (...args: any[]) => any
198
208
  processAssetsStageReport: (...args: any[]) => any
199
209
  compilation: (...args: any[]) => any
200
210
  thisCompilation: (...args: any[]) => any
@@ -348,6 +358,11 @@ export interface JsStatsLogging {
348
358
  trace?: Array<string>
349
359
  }
350
360
 
361
+ export interface JsStatsMillisecond {
362
+ secs: number
363
+ subsecMillis: number
364
+ }
365
+
351
366
  export interface JsStatsModule {
352
367
  type: string
353
368
  moduleType: string
@@ -363,6 +378,7 @@ export interface JsStatsModule {
363
378
  reasons?: Array<JsStatsModuleReason>
364
379
  assets?: Array<string>
365
380
  source?: string | Buffer
381
+ profile?: JsStatsModuleProfile
366
382
  }
367
383
 
368
384
  export interface JsStatsModuleIssuer {
@@ -371,6 +387,12 @@ export interface JsStatsModuleIssuer {
371
387
  id?: string
372
388
  }
373
389
 
390
+ export interface JsStatsModuleProfile {
391
+ factory: JsStatsMillisecond
392
+ integration: JsStatsMillisecond
393
+ building: JsStatsMillisecond
394
+ }
395
+
374
396
  export interface JsStatsModuleReason {
375
397
  moduleIdentifier?: string
376
398
  moduleName?: string
@@ -683,6 +705,8 @@ export interface RawLibraryOptions {
683
705
  export interface RawMinification {
684
706
  passes: number
685
707
  dropConsole: boolean
708
+ comments: "all" | "some" | "false"
709
+ asciiOnly: boolean
686
710
  pureFuncs: Array<string>
687
711
  extractComments?: string
688
712
  test?: RawMinificationConditions
@@ -800,6 +824,7 @@ export interface RawOptions {
800
824
  cache: RawCacheOptions
801
825
  experiments: RawExperiments
802
826
  node?: RawNodeOption
827
+ profile: boolean
803
828
  }
804
829
 
805
830
  export interface RawOutputOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/binding",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "license": "MIT",
5
5
  "description": "Node binding for rspack",
6
6
  "main": "binding.js",
@@ -22,15 +22,15 @@
22
22
  "binaryName": "rspack"
23
23
  },
24
24
  "optionalDependencies": {
25
- "@rspack/binding-darwin-arm64": "0.2.11",
26
- "@rspack/binding-win32-arm64-msvc": "0.2.11",
27
- "@rspack/binding-linux-arm64-gnu": "0.2.11",
28
- "@rspack/binding-linux-arm64-musl": "0.2.11",
29
- "@rspack/binding-win32-ia32-msvc": "0.2.11",
30
- "@rspack/binding-darwin-x64": "0.2.11",
31
- "@rspack/binding-win32-x64-msvc": "0.2.11",
32
- "@rspack/binding-linux-x64-gnu": "0.2.11",
33
- "@rspack/binding-linux-x64-musl": "0.2.11"
25
+ "@rspack/binding-darwin-arm64": "0.2.12",
26
+ "@rspack/binding-win32-arm64-msvc": "0.2.12",
27
+ "@rspack/binding-linux-arm64-gnu": "0.2.12",
28
+ "@rspack/binding-linux-arm64-musl": "0.2.12",
29
+ "@rspack/binding-win32-ia32-msvc": "0.2.12",
30
+ "@rspack/binding-darwin-x64": "0.2.12",
31
+ "@rspack/binding-win32-x64-msvc": "0.2.12",
32
+ "@rspack/binding-linux-x64-gnu": "0.2.12",
33
+ "@rspack/binding-linux-x64-musl": "0.2.12"
34
34
  },
35
35
  "scripts": {
36
36
  "build:debug": "node scripts/build.js",