@rspack/binding 1.7.6 → 1.7.8
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/napi-binding.d.ts +53 -33
- package/package.json +11 -11
package/napi-binding.d.ts
CHANGED
|
@@ -707,6 +707,14 @@ export interface JsBeforeEmitData {
|
|
|
707
707
|
uid?: number
|
|
708
708
|
}
|
|
709
709
|
|
|
710
|
+
export interface JsBeforeModuleIdsArg {
|
|
711
|
+
modules: Array<JsModuleForIds>
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
export interface JsBeforeModuleIdsResult {
|
|
715
|
+
assignments: Record<string, string | number>
|
|
716
|
+
}
|
|
717
|
+
|
|
710
718
|
export interface JsBuildMeta {
|
|
711
719
|
strictEsmModule?: boolean
|
|
712
720
|
hasTopLevelAwait?: boolean
|
|
@@ -970,6 +978,10 @@ export interface JsModuleDescriptor {
|
|
|
970
978
|
id?: string | number | null
|
|
971
979
|
}
|
|
972
980
|
|
|
981
|
+
export interface JsModuleForIds {
|
|
982
|
+
identifier: string
|
|
983
|
+
}
|
|
984
|
+
|
|
973
985
|
export interface JsNormalModuleFactoryCreateModuleArgs {
|
|
974
986
|
dependencyType: string
|
|
975
987
|
rawRequest: string
|
|
@@ -1093,6 +1105,11 @@ export interface JsRsdoctorExportInfo {
|
|
|
1093
1105
|
sideEffects: Array<number>
|
|
1094
1106
|
}
|
|
1095
1107
|
|
|
1108
|
+
export interface JsRsdoctorJsonModuleSize {
|
|
1109
|
+
identifier: string
|
|
1110
|
+
size: number
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1096
1113
|
export interface JsRsdoctorModule {
|
|
1097
1114
|
ukey: number
|
|
1098
1115
|
identifier: string
|
|
@@ -1141,6 +1158,7 @@ export interface JsRsdoctorModuleOriginalSource {
|
|
|
1141
1158
|
|
|
1142
1159
|
export interface JsRsdoctorModuleSourcesPatch {
|
|
1143
1160
|
moduleOriginalSources: Array<JsRsdoctorModuleOriginalSource>
|
|
1161
|
+
jsonModuleSizes: Array<JsRsdoctorJsonModuleSize>
|
|
1144
1162
|
}
|
|
1145
1163
|
|
|
1146
1164
|
export interface JsRsdoctorSideEffect {
|
|
@@ -2962,39 +2980,40 @@ export declare enum RegisterJsTapKind {
|
|
|
2962
2980
|
CompilationAfterOptimizeModules = 14,
|
|
2963
2981
|
CompilationOptimizeTree = 15,
|
|
2964
2982
|
CompilationOptimizeChunkModules = 16,
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2983
|
+
CompilationBeforeModuleIds = 17,
|
|
2984
|
+
CompilationAdditionalTreeRuntimeRequirements = 18,
|
|
2985
|
+
CompilationRuntimeRequirementInTree = 19,
|
|
2986
|
+
CompilationRuntimeModule = 20,
|
|
2987
|
+
CompilationChunkHash = 21,
|
|
2988
|
+
CompilationChunkAsset = 22,
|
|
2989
|
+
CompilationProcessAssets = 23,
|
|
2990
|
+
CompilationAfterProcessAssets = 24,
|
|
2991
|
+
CompilationSeal = 25,
|
|
2992
|
+
CompilationAfterSeal = 26,
|
|
2993
|
+
NormalModuleFactoryBeforeResolve = 27,
|
|
2994
|
+
NormalModuleFactoryFactorize = 28,
|
|
2995
|
+
NormalModuleFactoryResolve = 29,
|
|
2996
|
+
NormalModuleFactoryAfterResolve = 30,
|
|
2997
|
+
NormalModuleFactoryCreateModule = 31,
|
|
2998
|
+
NormalModuleFactoryResolveForScheme = 32,
|
|
2999
|
+
ContextModuleFactoryBeforeResolve = 33,
|
|
3000
|
+
ContextModuleFactoryAfterResolve = 34,
|
|
3001
|
+
JavascriptModulesChunkHash = 35,
|
|
3002
|
+
HtmlPluginBeforeAssetTagGeneration = 36,
|
|
3003
|
+
HtmlPluginAlterAssetTags = 37,
|
|
3004
|
+
HtmlPluginAlterAssetTagGroups = 38,
|
|
3005
|
+
HtmlPluginAfterTemplateExecution = 39,
|
|
3006
|
+
HtmlPluginBeforeEmit = 40,
|
|
3007
|
+
HtmlPluginAfterEmit = 41,
|
|
3008
|
+
RuntimePluginCreateScript = 42,
|
|
3009
|
+
RuntimePluginCreateLink = 43,
|
|
3010
|
+
RuntimePluginLinkPreload = 44,
|
|
3011
|
+
RuntimePluginLinkPrefetch = 45,
|
|
3012
|
+
RsdoctorPluginModuleGraph = 46,
|
|
3013
|
+
RsdoctorPluginChunkGraph = 47,
|
|
3014
|
+
RsdoctorPluginModuleIds = 48,
|
|
3015
|
+
RsdoctorPluginModuleSources = 49,
|
|
3016
|
+
RsdoctorPluginAssets = 50
|
|
2998
3017
|
}
|
|
2999
3018
|
|
|
3000
3019
|
export interface RegisterJsTaps {
|
|
@@ -3018,6 +3037,7 @@ export interface RegisterJsTaps {
|
|
|
3018
3037
|
registerCompilationAfterOptimizeModulesTaps: (stages: Array<number>) => Array<{ function: (() => void); stage: number; }>
|
|
3019
3038
|
registerCompilationOptimizeTreeTaps: (stages: Array<number>) => Array<{ function: (() => Promise<void>); stage: number; }>
|
|
3020
3039
|
registerCompilationOptimizeChunkModulesTaps: (stages: Array<number>) => Array<{ function: (() => Promise<boolean | undefined>); stage: number; }>
|
|
3040
|
+
registerCompilationBeforeModuleIdsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsBeforeModuleIdsArg) => JsBeforeModuleIdsResult); stage: number; }>
|
|
3021
3041
|
registerCompilationChunkHashTaps: (stages: Array<number>) => Array<{ function: ((arg: Chunk) => Buffer); stage: number; }>
|
|
3022
3042
|
registerCompilationChunkAssetTaps: (stages: Array<number>) => Array<{ function: ((arg: JsChunkAssetArgs) => void); stage: number; }>
|
|
3023
3043
|
registerCompilationProcessAssetsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCompilation) => Promise<void>); stage: number; }>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"optionalDependencies": {
|
|
53
|
-
"@rspack/binding-darwin-arm64": "1.7.
|
|
54
|
-
"@rspack/binding-win32-arm64-msvc": "1.7.
|
|
55
|
-
"@rspack/binding-linux-arm64-gnu": "1.7.
|
|
56
|
-
"@rspack/binding-linux-arm64-musl": "1.7.
|
|
57
|
-
"@rspack/binding-
|
|
58
|
-
"@rspack/binding-
|
|
59
|
-
"@rspack/binding-
|
|
60
|
-
"@rspack/binding-win32-x64-msvc": "1.7.
|
|
61
|
-
"@rspack/binding-linux-x64-
|
|
62
|
-
"@rspack/binding-linux-x64-
|
|
53
|
+
"@rspack/binding-darwin-arm64": "1.7.8",
|
|
54
|
+
"@rspack/binding-win32-arm64-msvc": "1.7.8",
|
|
55
|
+
"@rspack/binding-linux-arm64-gnu": "1.7.8",
|
|
56
|
+
"@rspack/binding-linux-arm64-musl": "1.7.8",
|
|
57
|
+
"@rspack/binding-win32-ia32-msvc": "1.7.8",
|
|
58
|
+
"@rspack/binding-darwin-x64": "1.7.8",
|
|
59
|
+
"@rspack/binding-wasm32-wasi": "1.7.8",
|
|
60
|
+
"@rspack/binding-win32-x64-msvc": "1.7.8",
|
|
61
|
+
"@rspack/binding-linux-x64-musl": "1.7.8",
|
|
62
|
+
"@rspack/binding-linux-x64-gnu": "1.7.8"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build:dev": "node scripts/build.js",
|