@rspack/binding 0.5.1 → 0.5.2-canary-e13c103-20240123120827
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/binding.d.ts +65 -6
- package/package.json +10 -10
package/binding.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export class JsCompilation {
|
|
|
45
45
|
addMissingDependencies(deps: Array<string>): void
|
|
46
46
|
addBuildDependencies(deps: Array<string>): void
|
|
47
47
|
rebuildModule(moduleIdentifiers: Array<string>, f: (...args: any[]) => any): void
|
|
48
|
+
importModule(request: string, publicPath: string | undefined | null, baseUri: string | undefined | null, originalModule: string | undefined | null, originalModuleContext: string | undefined | null, callback: (...args: any[]) => any): void
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
export class JsStats {
|
|
@@ -191,7 +192,8 @@ export const enum BuiltinPluginName {
|
|
|
191
192
|
CopyRspackPlugin = 'CopyRspackPlugin',
|
|
192
193
|
HtmlRspackPlugin = 'HtmlRspackPlugin',
|
|
193
194
|
SwcJsMinimizerRspackPlugin = 'SwcJsMinimizerRspackPlugin',
|
|
194
|
-
SwcCssMinimizerRspackPlugin = 'SwcCssMinimizerRspackPlugin'
|
|
195
|
+
SwcCssMinimizerRspackPlugin = 'SwcCssMinimizerRspackPlugin',
|
|
196
|
+
BundlerInfoPlugin = 'BundlerInfoPlugin'
|
|
195
197
|
}
|
|
196
198
|
|
|
197
199
|
export function cleanupGlobalTrace(): void
|
|
@@ -252,6 +254,11 @@ export interface JsAssetInfoRelated {
|
|
|
252
254
|
sourceMap?: string
|
|
253
255
|
}
|
|
254
256
|
|
|
257
|
+
export interface JsBuildTimeExecutionOption {
|
|
258
|
+
publicPath?: string
|
|
259
|
+
baseUri?: string
|
|
260
|
+
}
|
|
261
|
+
|
|
255
262
|
export interface JsChunk {
|
|
256
263
|
__inner_ukey: number
|
|
257
264
|
__inner_groups: Array<number>
|
|
@@ -301,8 +308,20 @@ export interface JsCompatSource {
|
|
|
301
308
|
|
|
302
309
|
export interface JsExecuteModuleArg {
|
|
303
310
|
entry: string
|
|
311
|
+
request: string
|
|
312
|
+
options: JsBuildTimeExecutionOption
|
|
304
313
|
runtimeModules: Array<string>
|
|
305
314
|
codegenResults: JsCodegenerationResults
|
|
315
|
+
id: number
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export interface JsExecuteModuleResult {
|
|
319
|
+
fileDependencies: Array<string>
|
|
320
|
+
contextDependencies: Array<string>
|
|
321
|
+
buildDependencies: Array<string>
|
|
322
|
+
missingDependencies: Array<string>
|
|
323
|
+
assets: Array<string>
|
|
324
|
+
id: number
|
|
306
325
|
}
|
|
307
326
|
|
|
308
327
|
export interface JsHooks {
|
|
@@ -348,6 +367,7 @@ export interface JsHooks {
|
|
|
348
367
|
succeedModule: (...args: any[]) => any
|
|
349
368
|
stillValidModule: (...args: any[]) => any
|
|
350
369
|
executeModule: (...args: any[]) => any
|
|
370
|
+
runtimeModule: (...args: any[]) => any
|
|
351
371
|
}
|
|
352
372
|
|
|
353
373
|
export interface JsLoaderContext {
|
|
@@ -390,6 +410,7 @@ export interface JsLoaderContext {
|
|
|
390
410
|
* @internal
|
|
391
411
|
*/
|
|
392
412
|
diagnosticsExternal: ExternalObject<'Diagnostic[]'>
|
|
413
|
+
_moduleIdentifier: string
|
|
393
414
|
}
|
|
394
415
|
|
|
395
416
|
export interface JsModule {
|
|
@@ -421,6 +442,18 @@ export interface JsResourceData {
|
|
|
421
442
|
fragment?: string
|
|
422
443
|
}
|
|
423
444
|
|
|
445
|
+
export interface JsRuntimeModule {
|
|
446
|
+
source?: JsCompatSource
|
|
447
|
+
moduleIdentifier: string
|
|
448
|
+
constructorName: string
|
|
449
|
+
name: string
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export interface JsRuntimeModuleArg {
|
|
453
|
+
module: JsRuntimeModule
|
|
454
|
+
chunk: JsChunk
|
|
455
|
+
}
|
|
456
|
+
|
|
424
457
|
export interface JsStatsAsset {
|
|
425
458
|
type: string
|
|
426
459
|
name: string
|
|
@@ -622,6 +655,11 @@ export interface RawBuiltins {
|
|
|
622
655
|
treeShaking: string
|
|
623
656
|
}
|
|
624
657
|
|
|
658
|
+
export interface RawBundlerInfoPluginOptions {
|
|
659
|
+
version: string
|
|
660
|
+
force: boolean | string[]
|
|
661
|
+
}
|
|
662
|
+
|
|
625
663
|
export interface RawCacheGroupOptions {
|
|
626
664
|
key: string
|
|
627
665
|
priority?: number
|
|
@@ -898,6 +936,20 @@ export interface RawLimitChunkCountPluginOptions {
|
|
|
898
936
|
maxChunks: number
|
|
899
937
|
}
|
|
900
938
|
|
|
939
|
+
export interface RawModuleFilenameTemplateFnCtx {
|
|
940
|
+
identifier: string
|
|
941
|
+
shortIdentifier: string
|
|
942
|
+
resource: string
|
|
943
|
+
resourcePath: string
|
|
944
|
+
absoluteResourcePath: string
|
|
945
|
+
loaders: string
|
|
946
|
+
allLoaders: string
|
|
947
|
+
query: string
|
|
948
|
+
moduleId: string
|
|
949
|
+
hash: string
|
|
950
|
+
namespace: string
|
|
951
|
+
}
|
|
952
|
+
|
|
901
953
|
export interface RawModuleOptions {
|
|
902
954
|
rules: Array<RawModuleRule>
|
|
903
955
|
parser?: Record<string, RawParserOptions>
|
|
@@ -971,6 +1023,7 @@ export interface RawOptimizationOptions {
|
|
|
971
1023
|
providedExports: boolean
|
|
972
1024
|
innerGraph: boolean
|
|
973
1025
|
mangleExports: string
|
|
1026
|
+
concatenateModules: boolean
|
|
974
1027
|
}
|
|
975
1028
|
|
|
976
1029
|
export interface RawOptions {
|
|
@@ -1153,12 +1206,18 @@ export interface RawSnapshotStrategy {
|
|
|
1153
1206
|
}
|
|
1154
1207
|
|
|
1155
1208
|
export interface RawSourceMapDevToolPluginOptions {
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1209
|
+
append?: (false | null) | string | Function
|
|
1210
|
+
columns?: boolean
|
|
1211
|
+
fallbackModuleFilenameTemplate?: string | Function
|
|
1212
|
+
fileContext?: string
|
|
1213
|
+
filename?: (false | null) | string
|
|
1214
|
+
module?: boolean
|
|
1215
|
+
moduleFilenameTemplate?: string | Function
|
|
1216
|
+
namespace?: string
|
|
1217
|
+
noSources?: boolean
|
|
1161
1218
|
publicPath?: string
|
|
1219
|
+
sourceRoot?: string
|
|
1220
|
+
test?: (text: string) => boolean
|
|
1162
1221
|
}
|
|
1163
1222
|
|
|
1164
1223
|
export interface RawSplitChunksOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2-canary-e13c103-20240123120827",
|
|
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-
|
|
26
|
-
"@rspack/binding-
|
|
27
|
-
"@rspack/binding-linux-arm64-gnu": "0.5.
|
|
28
|
-
"@rspack/binding-linux-arm64-musl": "0.5.
|
|
29
|
-
"@rspack/binding-
|
|
30
|
-
"@rspack/binding-
|
|
31
|
-
"@rspack/binding-
|
|
32
|
-
"@rspack/binding-
|
|
33
|
-
"@rspack/binding-
|
|
25
|
+
"@rspack/binding-darwin-x64": "0.5.2-canary-e13c103-20240123120827",
|
|
26
|
+
"@rspack/binding-darwin-arm64": "0.5.2-canary-e13c103-20240123120827",
|
|
27
|
+
"@rspack/binding-linux-arm64-gnu": "0.5.2-canary-e13c103-20240123120827",
|
|
28
|
+
"@rspack/binding-linux-arm64-musl": "0.5.2-canary-e13c103-20240123120827",
|
|
29
|
+
"@rspack/binding-linux-x64-gnu": "0.5.2-canary-e13c103-20240123120827",
|
|
30
|
+
"@rspack/binding-win32-arm64-msvc": "0.5.2-canary-e13c103-20240123120827",
|
|
31
|
+
"@rspack/binding-linux-x64-musl": "0.5.2-canary-e13c103-20240123120827",
|
|
32
|
+
"@rspack/binding-win32-ia32-msvc": "0.5.2-canary-e13c103-20240123120827",
|
|
33
|
+
"@rspack/binding-win32-x64-msvc": "0.5.2-canary-e13c103-20240123120827"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build:debug": "node scripts/build.js",
|