@rspack/binding 1.0.14 → 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 +21 -2
- package/package.json +10 -10
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>
|
|
@@ -1416,6 +1428,7 @@ export interface RawIncremental {
|
|
|
1416
1428
|
modulesHashes: boolean
|
|
1417
1429
|
modulesCodegen: boolean
|
|
1418
1430
|
modulesRuntimeRequirements: boolean
|
|
1431
|
+
buildChunkGraph: boolean
|
|
1419
1432
|
}
|
|
1420
1433
|
|
|
1421
1434
|
export interface RawInfo {
|
|
@@ -1437,6 +1450,7 @@ export interface RawJavascriptParserOptions {
|
|
|
1437
1450
|
url?: string
|
|
1438
1451
|
exprContextCritical?: boolean
|
|
1439
1452
|
wrappedContextCritical?: boolean
|
|
1453
|
+
wrappedContextRegExp?: RegExp
|
|
1440
1454
|
exportsPresence?: string
|
|
1441
1455
|
importExportsPresence?: string
|
|
1442
1456
|
reexportExportsPresence?: string
|
|
@@ -1686,6 +1700,7 @@ export interface RawOutputOptions {
|
|
|
1686
1700
|
workerPublicPath: string
|
|
1687
1701
|
scriptType: "module" | "text/javascript" | "false"
|
|
1688
1702
|
environment: RawEnvironment
|
|
1703
|
+
compareBeforeEmit: boolean
|
|
1689
1704
|
}
|
|
1690
1705
|
|
|
1691
1706
|
export interface RawParserOptions {
|
|
@@ -2012,5 +2027,9 @@ export interface ThreadsafeNodeFS {
|
|
|
2012
2027
|
mkdir: (name: string) => Promise<void> | void
|
|
2013
2028
|
mkdirp: (name: string) => Promise<string | void> | string | void
|
|
2014
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
|
|
2015
2034
|
}
|
|
2016
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",
|
|
@@ -24,15 +24,15 @@
|
|
|
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-win32-x64-msvc": "1.0.
|
|
34
|
-
"@rspack/binding-linux-x64-gnu": "1.0.
|
|
35
|
-
"@rspack/binding-linux-x64-musl": "1.0.
|
|
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",
|