@rspack/binding 1.0.13 → 1.1.0-beta.0
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 +25 -5
- package/package.json +11 -11
package/binding.d.ts
CHANGED
|
@@ -196,6 +196,7 @@ export class ModuleDto {
|
|
|
196
196
|
get layer(): string | undefined
|
|
197
197
|
get blocks(): Array<DependenciesBlockDto>
|
|
198
198
|
size(ty?: string | undefined | null): number
|
|
199
|
+
get modules(): ModuleDTO[] | undefined
|
|
199
200
|
}
|
|
200
201
|
export type ModuleDTO = ModuleDto
|
|
201
202
|
|
|
@@ -212,7 +213,7 @@ export function __chunk_graph_inner_get_chunk_entry_dependent_chunks_iterable(js
|
|
|
212
213
|
|
|
213
214
|
export function __chunk_graph_inner_get_chunk_entry_modules(jsChunkUkey: number, compilation: JsCompilation): Array<JsModule>
|
|
214
215
|
|
|
215
|
-
export function __chunk_graph_inner_get_chunk_modules(jsChunkUkey: number, compilation: JsCompilation):
|
|
216
|
+
export function __chunk_graph_inner_get_chunk_modules(jsChunkUkey: number, compilation: JsCompilation): ModuleDTO[]
|
|
216
217
|
|
|
217
218
|
export function __chunk_graph_inner_get_chunk_modules_iterable_by_source_type(jsChunkUkey: number, sourceType: string, compilation: JsCompilation): Array<JsModule>
|
|
218
219
|
|
|
@@ -263,6 +264,7 @@ export enum BuiltinPluginName {
|
|
|
263
264
|
WebWorkerTemplatePlugin = 'WebWorkerTemplatePlugin',
|
|
264
265
|
MergeDuplicateChunksPlugin = 'MergeDuplicateChunksPlugin',
|
|
265
266
|
SplitChunksPlugin = 'SplitChunksPlugin',
|
|
267
|
+
RemoveDuplicateModulesPlugin = 'RemoveDuplicateModulesPlugin',
|
|
266
268
|
ShareRuntimePlugin = 'ShareRuntimePlugin',
|
|
267
269
|
ContainerPlugin = 'ContainerPlugin',
|
|
268
270
|
ContainerReferencePlugin = 'ContainerReferencePlugin',
|
|
@@ -1041,6 +1043,16 @@ export interface NodeFS {
|
|
|
1041
1043
|
mkdirp: (...args: any[]) => any
|
|
1042
1044
|
}
|
|
1043
1045
|
|
|
1046
|
+
export interface NodeFsStats {
|
|
1047
|
+
isFile: boolean
|
|
1048
|
+
isDirectory: boolean
|
|
1049
|
+
atimeMs: number
|
|
1050
|
+
mtimeMs: number
|
|
1051
|
+
ctimeMs: number
|
|
1052
|
+
birthtimeMs: number
|
|
1053
|
+
size: number
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1044
1056
|
export interface PathWithInfo {
|
|
1045
1057
|
path: string
|
|
1046
1058
|
info: JsAssetInfo
|
|
@@ -1372,7 +1384,7 @@ export interface RawHtmlRspackPluginBaseOptions {
|
|
|
1372
1384
|
|
|
1373
1385
|
export interface RawHtmlRspackPluginOptions {
|
|
1374
1386
|
/** emitted file name in output path */
|
|
1375
|
-
filename?: string
|
|
1387
|
+
filename?: string[]
|
|
1376
1388
|
/** template html file */
|
|
1377
1389
|
template?: string
|
|
1378
1390
|
templateFn?: (data: string) => Promise<string>
|
|
@@ -1412,9 +1424,11 @@ export interface RawIncremental {
|
|
|
1412
1424
|
emitAssets: boolean
|
|
1413
1425
|
inferAsyncModules: boolean
|
|
1414
1426
|
providedExports: boolean
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1427
|
+
dependenciesDiagnostics: boolean
|
|
1428
|
+
modulesHashes: boolean
|
|
1429
|
+
modulesCodegen: boolean
|
|
1430
|
+
modulesRuntimeRequirements: boolean
|
|
1431
|
+
buildChunkGraph: boolean
|
|
1418
1432
|
}
|
|
1419
1433
|
|
|
1420
1434
|
export interface RawInfo {
|
|
@@ -1436,6 +1450,7 @@ export interface RawJavascriptParserOptions {
|
|
|
1436
1450
|
url?: string
|
|
1437
1451
|
exprContextCritical?: boolean
|
|
1438
1452
|
wrappedContextCritical?: boolean
|
|
1453
|
+
wrappedContextRegExp?: RegExp
|
|
1439
1454
|
exportsPresence?: string
|
|
1440
1455
|
importExportsPresence?: string
|
|
1441
1456
|
reexportExportsPresence?: string
|
|
@@ -1685,6 +1700,7 @@ export interface RawOutputOptions {
|
|
|
1685
1700
|
workerPublicPath: string
|
|
1686
1701
|
scriptType: "module" | "text/javascript" | "false"
|
|
1687
1702
|
environment: RawEnvironment
|
|
1703
|
+
compareBeforeEmit: boolean
|
|
1688
1704
|
}
|
|
1689
1705
|
|
|
1690
1706
|
export interface RawParserOptions {
|
|
@@ -2011,5 +2027,9 @@ export interface ThreadsafeNodeFS {
|
|
|
2011
2027
|
mkdir: (name: string) => Promise<void> | void
|
|
2012
2028
|
mkdirp: (name: string) => Promise<string | void> | string | void
|
|
2013
2029
|
removeDirAll: (name: string) => Promise<string | void> | string | void
|
|
2030
|
+
readDir: (name: string) => Promise<string[] | void> | string[] | void
|
|
2031
|
+
readFile: (name: string) => Promise<Buffer | string | void> | Buffer | string | void
|
|
2032
|
+
stat: (name: string) => Promise<NodeFsStats | void> | NodeFsStats | void
|
|
2033
|
+
lstat: (name: string) => Promise<NodeFsStats | void> | NodeFsStats | void
|
|
2014
2034
|
}
|
|
2015
2035
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.1.0-beta.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -18,21 +18,21 @@
|
|
|
18
18
|
"repository": "web-infra-dev/rspack",
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@napi-rs/cli": "3.0.0-alpha.45",
|
|
21
|
-
"typescript": "5.
|
|
21
|
+
"typescript": "^5.6.3"
|
|
22
22
|
},
|
|
23
23
|
"napi": {
|
|
24
24
|
"binaryName": "rspack"
|
|
25
25
|
},
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"@rspack/binding-
|
|
28
|
-
"@rspack/binding-
|
|
29
|
-
"@rspack/binding-linux-arm64-gnu": "1.0.
|
|
30
|
-
"@rspack/binding-linux-arm64-musl": "1.0.
|
|
31
|
-
"@rspack/binding-win32-ia32-msvc": "1.0.
|
|
32
|
-
"@rspack/binding-darwin-x64": "1.0.
|
|
33
|
-
"@rspack/binding-
|
|
34
|
-
"@rspack/binding-linux-x64-gnu": "1.0.
|
|
35
|
-
"@rspack/binding-
|
|
27
|
+
"@rspack/binding-win32-arm64-msvc": "1.1.0-beta.0",
|
|
28
|
+
"@rspack/binding-darwin-arm64": "1.1.0-beta.0",
|
|
29
|
+
"@rspack/binding-linux-arm64-gnu": "1.1.0-beta.0",
|
|
30
|
+
"@rspack/binding-linux-arm64-musl": "1.1.0-beta.0",
|
|
31
|
+
"@rspack/binding-win32-ia32-msvc": "1.1.0-beta.0",
|
|
32
|
+
"@rspack/binding-darwin-x64": "1.1.0-beta.0",
|
|
33
|
+
"@rspack/binding-win32-x64-msvc": "1.1.0-beta.0",
|
|
34
|
+
"@rspack/binding-linux-x64-gnu": "1.1.0-beta.0",
|
|
35
|
+
"@rspack/binding-linux-x64-musl": "1.1.0-beta.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build:debug": "node scripts/build.js",
|