@rspack/binding 1.0.0-beta.1 → 1.0.0-beta.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.
Files changed (2) hide show
  1. package/binding.d.ts +287 -163
  2. package/package.json +10 -10
package/binding.d.ts CHANGED
@@ -19,6 +19,39 @@ export class ExternalObject<T> {
19
19
  [K: symbol]: T
20
20
  }
21
21
  }
22
+ export class DependencyDto {
23
+ get type(): string
24
+ get category(): string
25
+ }
26
+ export type DependencyDTO = DependencyDto
27
+
28
+ export class EntryDataDto {
29
+ get dependencies(): Array<DependencyDto>
30
+ get includeDependencies(): Array<DependencyDto>
31
+ get options(): EntryOptionsDto
32
+ }
33
+ export type EntryDataDTO = EntryDataDto
34
+
35
+ export class EntryOptionsDto {
36
+ get name(): string | undefined
37
+ set name(name: string | undefined)
38
+ get runtime(): false | string | undefined
39
+ set runtime(chunkLoading: boolean | string | undefined)
40
+ get chunkLoading(): string | undefined
41
+ set chunkLoading(chunkLoading: string | undefined)
42
+ get asyncChunks(): boolean | undefined
43
+ set asyncChunks(asyncChunks: boolean | undefined)
44
+ get baseUri(): string | undefined
45
+ set baseUri(baseUri: string | undefined)
46
+ get library(): JsLibraryOptions | undefined
47
+ set library(library: JsLibraryOptions | undefined)
48
+ get dependOn(): Array<string> | undefined
49
+ set dependOn(dependOn: Array<string> | undefined)
50
+ get layer(): string | undefined
51
+ set layer(layer: string | undefined)
52
+ }
53
+ export type EntryOptionsDTO = EntryOptionsDto
54
+
22
55
  export class JsCompilation {
23
56
  updateAsset(filename: string, newSourceOrFunction: JsCompatSource | ((source: JsCompatSource) => JsCompatSource), assetInfoUpdateOrFunction?: JsAssetInfo | ((assetInfo: JsAssetInfo) => JsAssetInfo)): void
24
57
  getAssets(): Readonly<JsAsset>[]
@@ -62,6 +95,18 @@ export class JsCompilation {
62
95
  addBuildDependencies(deps: Array<string>): void
63
96
  rebuildModule(moduleIdentifiers: Array<string>, f: (...args: any[]) => any): void
64
97
  importModule(request: string, publicPath: JsFilename | undefined | null, baseUri: string | undefined | null, originalModule: string | undefined | null, originalModuleContext: string | undefined | null, callback: (...args: any[]) => any): void
98
+ get entries(): JsEntries
99
+ }
100
+
101
+ export class JsEntries {
102
+ clear(): void
103
+ get size(): number
104
+ has(key: string): boolean
105
+ set(key: string, value: JsEntryData | EntryDataDto): void
106
+ delete(key: string): boolean
107
+ get(key: string): EntryDataDto | undefined
108
+ keys(): Array<string>
109
+ values(): Array<EntryDataDto>
65
110
  }
66
111
 
67
112
  export class JsResolver {
@@ -75,90 +120,10 @@ export class JsResolverFactory {
75
120
  }
76
121
 
77
122
  export class JsStats {
78
- getAssets(): JsStatsGetAssets
79
- getModules(reasons: boolean, moduleAssets: boolean, nestedModules: boolean, source: boolean, usedExports: boolean, providedExports: boolean): Array<JsStatsModule>
80
- getChunks(chunkModules: boolean, chunksRelations: boolean, reasons: boolean, moduleAssets: boolean, nestedModules: boolean, source: boolean, usedExports: boolean, providedExports: boolean): Array<JsStatsChunk>
81
- getEntrypoints(chunkGroupAuxiliary: boolean, chunkGroupChildren: boolean): Array<JsStatsChunkGroup>
82
- getNamedChunkGroups(chunkGroupAuxiliary: boolean, chunkGroupChildren: boolean): Array<JsStatsChunkGroup>
83
- getErrors(): Array<JsStatsError>
84
- getWarnings(): Array<JsStatsWarning>
123
+ toJson(jsOptions: JsStatsOptions): JsStatsCompilation
124
+ hasWarnings(): boolean
125
+ hasErrors(): boolean
85
126
  getLogging(acceptedTypes: number): Array<JsStatsLogging>
86
- getHash(): string | null
87
- }
88
-
89
- export class JsStatsChunk {
90
- get type(): string
91
- get files(): Array<string>
92
- get auxiliaryFiles(): Array<string>
93
- get id(): string | undefined
94
- get idHints(): Array<string>
95
- get hash(): string | undefined
96
- get entry(): boolean
97
- get initial(): boolean
98
- get names(): Array<string>
99
- get size(): number
100
- get parents(): Array<string> | undefined
101
- get children(): Array<string> | undefined
102
- get siblings(): Array<string> | undefined
103
- get childrenByOrder(): Record<string, Array<string>>
104
- get runtime(): Array<string>
105
- get reason(): string | undefined
106
- get rendered(): boolean
107
- get sizes(): Array<JsStatsSize>
108
- get origins(): Array<JsOriginRecord>
109
- get modules(): Array<JsStatsModule> | undefined
110
- }
111
-
112
- export class JsStatsModule {
113
- get type(): string
114
- get moduleType(): string
115
- get identifier(): string
116
- get layer(): string | undefined
117
- get name(): string
118
- get id(): string | undefined
119
- get chunks(): Array<string | undefined | null>
120
- get size(): number
121
- get depth(): number | undefined
122
- get dependent(): boolean | undefined
123
- get issuer(): string | undefined
124
- get issuerName(): string | undefined
125
- get issuerId(): string | undefined
126
- get issuerPath(): Array<JsStatsModuleIssuer>
127
- get nameForCondition(): string | undefined
128
- get assets(): Array<string> | undefined
129
- get source(): string | Buffer | undefined
130
- get orphan(): boolean
131
- get providedExports(): Array<string> | undefined
132
- get usedExports(): string | Array<string> | undefined
133
- get optimizationBailout(): Array<string> | undefined
134
- get preOrderIndex(): number | undefined
135
- get postOrderIndex(): number | undefined
136
- get built(): boolean
137
- get codeGenerated(): boolean
138
- get buildTimeExecuted(): boolean
139
- get cached(): boolean
140
- get cacheable(): boolean
141
- get optional(): boolean
142
- get failed(): boolean
143
- get errors(): number
144
- get warnings(): number
145
- get sizes(): Array<JsStatsSize>
146
- get profile(): JsStatsModuleProfile | undefined
147
- get reasons(): Array<JsStatsModuleReason> | undefined
148
- get modules(): Array<JsStatsModule> | undefined
149
- }
150
-
151
- export class JsStatsModuleReason {
152
- get moduleIdentifier(): string | undefined
153
- get moduleName(): string | undefined
154
- get moduleId(): string | undefined
155
- get type(): string | undefined
156
- get userRequest(): string | undefined
157
- }
158
-
159
- export class JsStatsSize {
160
- sourceType: string
161
- size: number
162
127
  }
163
128
 
164
129
  export class Rspack {
@@ -390,6 +355,7 @@ export interface JsChunkGroup {
390
355
  chunks: Array<JsChunk>
391
356
  index?: number
392
357
  name?: string
358
+ isInitial: boolean
393
359
  }
394
360
 
395
361
  export interface JsChunkPathData {
@@ -439,6 +405,31 @@ export interface JsDiagnostic {
439
405
  error: JsRspackError
440
406
  }
441
407
 
408
+ export interface JsEntryData {
409
+ dependencies: Array<DependencyDto>
410
+ includeDependencies: Array<DependencyDto>
411
+ options: JsEntryOptions
412
+ }
413
+
414
+ export interface JsEntryOptions {
415
+ name?: string
416
+ runtime?: false | string
417
+ chunkLoading?: string
418
+ asyncChunks?: boolean
419
+ publicPath?: "auto" | JsFilename
420
+ baseUri?: string
421
+ filename?: JsFilename
422
+ library?: JsLibraryOptions
423
+ dependOn?: Array<string>
424
+ layer?: string
425
+ }
426
+
427
+ export interface JsEntryPluginOptions {
428
+ context: string
429
+ entry: string
430
+ options: JsEntryOptions
431
+ }
432
+
442
433
  export interface JsExecuteModuleArg {
443
434
  entry: string
444
435
  runtimeModules: Array<string>
@@ -466,6 +457,35 @@ export interface JsFactoryMeta {
466
457
  sideEffectFree?: boolean
467
458
  }
468
459
 
460
+ export interface JsLibraryAuxiliaryComment {
461
+ root?: string
462
+ commonjs?: string
463
+ commonjs2?: string
464
+ amd?: string
465
+ }
466
+
467
+ export interface JsLibraryCustomUmdObject {
468
+ amd?: string
469
+ commonjs?: string
470
+ root?: Array<string>
471
+ }
472
+
473
+ export interface JsLibraryName {
474
+ type: "string" | "array" | "umdObject"
475
+ stringPayload?: string
476
+ arrayPayload?: Array<string>
477
+ umdObjectPayload?: JsLibraryCustomUmdObject
478
+ }
479
+
480
+ export interface JsLibraryOptions {
481
+ name?: JsLibraryName
482
+ export?: Array<string>
483
+ libraryType: string
484
+ umdNamedDefine?: boolean
485
+ auxiliaryComment?: JsLibraryAuxiliaryComment
486
+ amdContainer?: string
487
+ }
488
+
469
489
  export interface JsLoaderContext {
470
490
  resourceData: Readonly<JsResourceData>
471
491
  /** Will be deprecated. Use module.module_identifier instead */
@@ -513,6 +533,12 @@ export interface JsModule {
513
533
  layer?: string
514
534
  }
515
535
 
536
+ export interface JsModuleDescriptor {
537
+ identifier: string
538
+ name: string
539
+ id?: string
540
+ }
541
+
516
542
  export interface JsNormalModuleFactoryCreateModuleArgs {
517
543
  dependencyType: string
518
544
  rawRequest: string
@@ -522,10 +548,7 @@ export interface JsNormalModuleFactoryCreateModuleArgs {
522
548
  }
523
549
 
524
550
  export interface JsOriginRecord {
525
- module: string
526
- moduleId: string
527
- moduleIdentifier: string
528
- moduleName: string
551
+ moduleDescriptor?: JsModuleDescriptor
529
552
  loc: string
530
553
  request: string
531
554
  }
@@ -630,9 +653,32 @@ export interface JsStatsAssetsByChunkName {
630
653
  files: Array<string>
631
654
  }
632
655
 
656
+ export interface JsStatsChunk {
657
+ type: string
658
+ files: Array<string>
659
+ auxiliaryFiles: Array<string>
660
+ id?: string
661
+ idHints: Array<string>
662
+ hash?: string
663
+ entry: boolean
664
+ initial: boolean
665
+ names: Array<string>
666
+ size: number
667
+ parents?: Array<string>
668
+ children?: Array<string>
669
+ siblings?: Array<string>
670
+ childrenByOrder: Record<string, Array<string>>
671
+ runtime: Array<string>
672
+ reason?: string
673
+ rendered: boolean
674
+ sizes: Array<JsStatsSize>
675
+ origins: Array<JsOriginRecord>
676
+ modules?: Array<JsStatsModule>
677
+ }
678
+
633
679
  export interface JsStatsChunkGroup {
634
680
  name: string
635
- chunks: Array<string | undefined | null>
681
+ chunks: Array<string>
636
682
  assets: Array<JsStatsChunkGroupAsset>
637
683
  assetsSize: number
638
684
  auxiliaryAssets?: Array<JsStatsChunkGroupAsset>
@@ -650,16 +696,26 @@ export interface JsStatsChunkGroupChildren {
650
696
  prefetch?: Array<JsStatsChunkGroup>
651
697
  }
652
698
 
699
+ export interface JsStatsCompilation {
700
+ assets?: Array<JsStatsAsset>
701
+ assetsByChunkName?: Array<JsStatsAssetsByChunkName>
702
+ chunks?: Array<JsStatsChunk>
703
+ entrypoints?: Array<JsStatsChunkGroup>
704
+ errors: Array<JsStatsError>
705
+ hash?: string
706
+ modules?: Array<JsStatsModule>
707
+ namedChunkGroups?: Array<JsStatsChunkGroup>
708
+ warnings: Array<JsStatsWarning>
709
+ }
710
+
653
711
  export interface JsStatsError {
712
+ moduleDescriptor?: JsModuleDescriptor
654
713
  message: string
655
714
  chunkName?: string
656
715
  chunkEntry?: boolean
657
716
  chunkInitial?: boolean
658
717
  loc?: string
659
718
  file?: string
660
- moduleIdentifier?: string
661
- moduleName?: string
662
- moduleId?: string
663
719
  chunkId?: string
664
720
  details?: string
665
721
  stack?: string
@@ -683,10 +739,47 @@ export interface JsStatsMillisecond {
683
739
  subsecMillis: number
684
740
  }
685
741
 
742
+ export interface JsStatsModule {
743
+ commonAttributes: JsStatsModuleCommonAttributes
744
+ dependent?: boolean
745
+ issuerDescriptor?: JsModuleDescriptor
746
+ issuerPath?: Array<JsStatsModuleIssuer>
747
+ usedExports?: string | Array<string>
748
+ modules?: Array<JsStatsModule>
749
+ }
750
+
751
+ export interface JsStatsModuleCommonAttributes {
752
+ type: string
753
+ moduleType: string
754
+ layer?: string
755
+ size: number
756
+ sizes: Array<JsStatsSize>
757
+ built: boolean
758
+ codeGenerated: boolean
759
+ buildTimeExecuted: boolean
760
+ cached: boolean
761
+ moduleDescriptor?: JsModuleDescriptor
762
+ nameForCondition?: string
763
+ preOrderIndex?: number
764
+ postOrderIndex?: number
765
+ cacheable?: boolean
766
+ optional?: boolean
767
+ orphan?: boolean
768
+ failed?: boolean
769
+ errors?: number
770
+ warnings?: number
771
+ profile?: JsStatsModuleProfile
772
+ chunks?: Array<string>
773
+ assets?: Array<string>
774
+ reasons?: Array<JsStatsModuleReason>
775
+ providedExports?: Array<string>
776
+ optimizationBailout?: Array<string>
777
+ depth?: number
778
+ source?: string | Buffer
779
+ }
780
+
686
781
  export interface JsStatsModuleIssuer {
687
- identifier: string
688
- name: string
689
- id?: string
782
+ moduleDescriptor: JsModuleDescriptor
690
783
  }
691
784
 
692
785
  export interface JsStatsModuleProfile {
@@ -694,30 +787,62 @@ export interface JsStatsModuleProfile {
694
787
  building: JsStatsMillisecond
695
788
  }
696
789
 
790
+ export interface JsStatsModuleReason {
791
+ moduleDescriptor?: JsModuleDescriptor
792
+ type?: string
793
+ userRequest?: string
794
+ }
795
+
697
796
  export interface JsStatsModuleTrace {
698
797
  origin: JsStatsModuleTraceModule
699
798
  module: JsStatsModuleTraceModule
700
799
  }
701
800
 
702
801
  export interface JsStatsModuleTraceModule {
703
- identifier: string
704
- name?: string
705
- id?: string
802
+ moduleDescriptor: JsModuleDescriptor
706
803
  }
707
804
 
708
805
  export interface JsStatsOptimizationBailout {
709
806
  inner: string
710
807
  }
711
808
 
809
+ export interface JsStatsOptions {
810
+ assets: boolean
811
+ cachedModules: boolean
812
+ chunks: boolean
813
+ chunkGroupAuxiliary: boolean
814
+ chunkGroupChildren: boolean
815
+ chunkGroups: boolean
816
+ chunkModules: boolean
817
+ chunkRelations: boolean
818
+ depth: boolean
819
+ entrypoints: boolean | string
820
+ errors: boolean
821
+ hash: boolean
822
+ ids: boolean
823
+ modules: boolean
824
+ moduleAssets: boolean
825
+ nestedModules: boolean
826
+ optimizationBailout: boolean
827
+ providedExports: boolean
828
+ reasons: boolean
829
+ source: boolean
830
+ usedExports: boolean
831
+ warnings: boolean
832
+ }
833
+
834
+ export interface JsStatsSize {
835
+ sourceType: string
836
+ size: number
837
+ }
838
+
712
839
  export interface JsStatsWarning {
840
+ moduleDescriptor?: JsModuleDescriptor
713
841
  message: string
714
842
  chunkName?: string
715
843
  chunkEntry?: boolean
716
844
  chunkInitial?: boolean
717
845
  file?: string
718
- moduleIdentifier?: string
719
- moduleName?: string
720
- moduleId?: string
721
846
  chunkId?: string
722
847
  details?: string
723
848
  stack?: string
@@ -873,7 +998,7 @@ export interface RawConsumeSharedPluginOptions {
873
998
  export interface RawContainerPluginOptions {
874
999
  name: string
875
1000
  shareScope: string
876
- library: RawLibraryOptions
1001
+ library: JsLibraryOptions
877
1002
  runtime?: false | string
878
1003
  filename?: string
879
1004
  exposes: Array<RawExposeOptions>
@@ -958,6 +1083,10 @@ export interface RawCssParserOptions {
958
1083
  namedExports?: boolean
959
1084
  }
960
1085
 
1086
+ export interface RawDraft {
1087
+ customMedia: boolean
1088
+ }
1089
+
961
1090
  export interface RawDynamicEntryPluginOptions {
962
1091
  context: string
963
1092
  entry: () => Promise<RawEntryDynamicResult[]>
@@ -965,26 +1094,7 @@ export interface RawDynamicEntryPluginOptions {
965
1094
 
966
1095
  export interface RawEntryDynamicResult {
967
1096
  import: Array<string>
968
- options: RawEntryOptions
969
- }
970
-
971
- export interface RawEntryOptions {
972
- name?: string
973
- runtime?: false | string
974
- chunkLoading?: string
975
- asyncChunks?: boolean
976
- publicPath?: "auto" | JsFilename
977
- baseUri?: string
978
- filename?: JsFilename
979
- library?: RawLibraryOptions
980
- dependOn?: Array<string>
981
- layer?: string
982
- }
983
-
984
- export interface RawEntryPluginOptions {
985
- context: string
986
- entry: string
987
- options: RawEntryOptions
1097
+ options: JsEntryOptions
988
1098
  }
989
1099
 
990
1100
  export interface RawEnvironment {
@@ -1137,43 +1247,43 @@ export interface RawLazyCompilationOption {
1137
1247
  cacheable: boolean
1138
1248
  }
1139
1249
 
1140
- export interface RawLibraryAuxiliaryComment {
1141
- root?: string
1142
- commonjs?: string
1143
- commonjs2?: string
1144
- amd?: string
1145
- }
1146
-
1147
- export interface RawLibraryCustomUmdObject {
1148
- amd?: string
1149
- commonjs?: string
1150
- root?: Array<string>
1151
- }
1152
-
1153
- export interface RawLibraryName {
1154
- type: "string" | "array" | "umdObject"
1155
- stringPayload?: string
1156
- arrayPayload?: Array<string>
1157
- umdObjectPayload?: RawLibraryCustomUmdObject
1250
+ export interface RawLightningCssBrowsers {
1251
+ android?: number
1252
+ chrome?: number
1253
+ edge?: number
1254
+ firefox?: number
1255
+ ie?: number
1256
+ ios_saf?: number
1257
+ opera?: number
1258
+ safari?: number
1259
+ samsung?: number
1158
1260
  }
1159
1261
 
1160
- export interface RawLibraryOptions {
1161
- name?: RawLibraryName
1162
- export?: Array<string>
1163
- libraryType: string
1164
- umdNamedDefine?: boolean
1165
- auxiliaryComment?: RawLibraryAuxiliaryComment
1166
- amdContainer?: string
1262
+ export interface RawLightningCssMinimizerOptions {
1263
+ errorRecovery: boolean
1264
+ targets?: RawLightningCssBrowsers
1265
+ include?: number
1266
+ exclude?: number
1267
+ draft?: RawDraft
1268
+ nonStandard?: RawNonStandard
1269
+ pseudoClasses?: RawLightningCssPseudoClasses
1270
+ unusedSymbols: Array<string>
1167
1271
  }
1168
1272
 
1169
1273
  export interface RawLightningCssMinimizerRspackPluginOptions {
1170
- errorRecovery: boolean
1171
- unusedSymbols: Array<string>
1172
- removeUnusedLocalIdents: boolean
1173
- browserslist: Array<string>
1174
1274
  test?: string | RegExp | (string | RegExp)[]
1175
1275
  include?: string | RegExp | (string | RegExp)[]
1176
1276
  exclude?: string | RegExp | (string | RegExp)[]
1277
+ removeUnusedLocalIdents: boolean
1278
+ minimizerOptions: RawLightningCssMinimizerOptions
1279
+ }
1280
+
1281
+ export interface RawLightningCssPseudoClasses {
1282
+ hover?: string
1283
+ active?: string
1284
+ focus?: string
1285
+ focusVisible?: string
1286
+ focusWithin?: string
1177
1287
  }
1178
1288
 
1179
1289
  export interface RawLimitChunkCountPluginOptions {
@@ -1271,6 +1381,10 @@ export interface RawNodeOption {
1271
1381
  global: string
1272
1382
  }
1273
1383
 
1384
+ export interface RawNonStandard {
1385
+ deepSelectorCombinator: boolean
1386
+ }
1387
+
1274
1388
  export interface RawOptimizationOptions {
1275
1389
  removeAvailableModules: boolean
1276
1390
  sideEffects: string
@@ -1315,12 +1429,13 @@ export interface RawOutputOptions {
1315
1429
  crossOriginLoading: RawCrossOriginLoading
1316
1430
  cssFilename: JsFilename
1317
1431
  cssChunkFilename: JsFilename
1432
+ cssHeadDataCompression: boolean
1318
1433
  hotUpdateMainFilename: string
1319
1434
  hotUpdateChunkFilename: string
1320
1435
  hotUpdateGlobal: string
1321
1436
  uniqueName: string
1322
1437
  chunkLoadingGlobal: string
1323
- library?: RawLibraryOptions
1438
+ library?: JsLibraryOptions
1324
1439
  strictModuleErrorHandling: boolean
1325
1440
  enabledLibraryTypes?: Array<string>
1326
1441
  globalObject: string
@@ -1375,6 +1490,9 @@ export interface RawProvideOptions {
1375
1490
  shareScope: string
1376
1491
  version?: string | false | undefined
1377
1492
  eager: boolean
1493
+ singleton?: boolean
1494
+ requiredVersion?: string | false | undefined
1495
+ strictVersion?: boolean
1378
1496
  }
1379
1497
 
1380
1498
  export interface RawRegex {
@@ -1543,15 +1661,19 @@ export interface RawSwcCssMinimizerRspackPluginOptions {
1543
1661
  exclude?: string | RegExp | (string | RegExp)[]
1544
1662
  }
1545
1663
 
1546
- export interface RawSwcJsMinimizerRspackPluginOptions {
1547
- extractComments?: RawExtractComments
1664
+ export interface RawSwcJsMinimizerOptions {
1548
1665
  compress: any
1549
1666
  mangle: any
1550
1667
  format: any
1551
1668
  module?: boolean
1669
+ }
1670
+
1671
+ export interface RawSwcJsMinimizerRspackPluginOptions {
1552
1672
  test?: string | RegExp | (string | RegExp)[]
1553
1673
  include?: string | RegExp | (string | RegExp)[]
1554
1674
  exclude?: string | RegExp | (string | RegExp)[]
1675
+ extractComments?: RawExtractComments
1676
+ minimizerOptions: RawSwcJsMinimizerOptions
1555
1677
  }
1556
1678
 
1557
1679
  export interface RawToOptions {
@@ -1596,16 +1718,17 @@ export enum RegisterJsTapKind {
1596
1718
  CompilationChunkAsset = 20,
1597
1719
  CompilationProcessAssets = 21,
1598
1720
  CompilationAfterProcessAssets = 22,
1599
- CompilationAfterSeal = 23,
1600
- NormalModuleFactoryBeforeResolve = 24,
1601
- NormalModuleFactoryFactorize = 25,
1602
- NormalModuleFactoryResolve = 26,
1603
- NormalModuleFactoryAfterResolve = 27,
1604
- NormalModuleFactoryCreateModule = 28,
1605
- NormalModuleFactoryResolveForScheme = 29,
1606
- ContextModuleFactoryBeforeResolve = 30,
1607
- ContextModuleFactoryAfterResolve = 31,
1608
- JavascriptModulesChunkHash = 32
1721
+ CompilationSeal = 23,
1722
+ CompilationAfterSeal = 24,
1723
+ NormalModuleFactoryBeforeResolve = 25,
1724
+ NormalModuleFactoryFactorize = 26,
1725
+ NormalModuleFactoryResolve = 27,
1726
+ NormalModuleFactoryAfterResolve = 28,
1727
+ NormalModuleFactoryCreateModule = 29,
1728
+ NormalModuleFactoryResolveForScheme = 30,
1729
+ ContextModuleFactoryBeforeResolve = 31,
1730
+ ContextModuleFactoryAfterResolve = 32,
1731
+ JavascriptModulesChunkHash = 33
1609
1732
  }
1610
1733
 
1611
1734
  export interface RegisterJsTaps {
@@ -1632,6 +1755,7 @@ export interface RegisterJsTaps {
1632
1755
  registerCompilationChunkAssetTaps: (stages: Array<number>) => Array<{ function: ((arg: JsChunkAssetArgs) => void); stage: number; }>
1633
1756
  registerCompilationProcessAssetsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCompilation) => Promise<void>); stage: number; }>
1634
1757
  registerCompilationAfterProcessAssetsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCompilation) => void); stage: number; }>
1758
+ registerCompilationSealTaps: (stages: Array<number>) => Array<{ function: (() => void); stage: number; }>
1635
1759
  registerCompilationAfterSealTaps: (stages: Array<number>) => Array<{ function: (() => Promise<void>); stage: number; }>
1636
1760
  registerNormalModuleFactoryBeforeResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: JsBeforeResolveArgs) => Promise<[boolean | undefined, JsBeforeResolveArgs]>); stage: number; }>
1637
1761
  registerNormalModuleFactoryFactorizeTaps: (stages: Array<number>) => Array<{ function: ((arg: JsFactorizeArgs) => Promise<JsFactorizeArgs>); stage: number; }>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/binding",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.3",
4
4
  "license": "MIT",
5
5
  "description": "Node binding for rspack",
6
6
  "main": "binding.js",
@@ -24,15 +24,15 @@
24
24
  "binaryName": "rspack"
25
25
  },
26
26
  "optionalDependencies": {
27
- "@rspack/binding-darwin-arm64": "1.0.0-beta.1",
28
- "@rspack/binding-win32-arm64-msvc": "1.0.0-beta.1",
29
- "@rspack/binding-linux-arm64-gnu": "1.0.0-beta.1",
30
- "@rspack/binding-linux-arm64-musl": "1.0.0-beta.1",
31
- "@rspack/binding-win32-ia32-msvc": "1.0.0-beta.1",
32
- "@rspack/binding-linux-x64-gnu": "1.0.0-beta.1",
33
- "@rspack/binding-linux-x64-musl": "1.0.0-beta.1",
34
- "@rspack/binding-win32-x64-msvc": "1.0.0-beta.1",
35
- "@rspack/binding-darwin-x64": "1.0.0-beta.1"
27
+ "@rspack/binding-linux-arm64-musl": "1.0.0-beta.3",
28
+ "@rspack/binding-win32-arm64-msvc": "1.0.0-beta.3",
29
+ "@rspack/binding-darwin-arm64": "1.0.0-beta.3",
30
+ "@rspack/binding-linux-arm64-gnu": "1.0.0-beta.3",
31
+ "@rspack/binding-win32-ia32-msvc": "1.0.0-beta.3",
32
+ "@rspack/binding-win32-x64-msvc": "1.0.0-beta.3",
33
+ "@rspack/binding-darwin-x64": "1.0.0-beta.3",
34
+ "@rspack/binding-linux-x64-gnu": "1.0.0-beta.3",
35
+ "@rspack/binding-linux-x64-musl": "1.0.0-beta.3"
36
36
  },
37
37
  "scripts": {
38
38
  "build:debug": "node scripts/build.js",