@ohos-ports/rspack-binding 2.2.1-beta.0 → 2.2.2-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/napi-binding.d.ts +14 -13
- package/package.json +2 -2
- package/rspack.openharmony-arm64-ohos.node +0 -0
package/napi-binding.d.ts
CHANGED
|
@@ -309,7 +309,7 @@ export declare class JsCompilation {
|
|
|
309
309
|
getWarnings(): Array<RspackError>
|
|
310
310
|
getStats(): JsStats
|
|
311
311
|
getAssetPath(filename: string, data: JsPathData): string
|
|
312
|
-
getAssetPathWithInfo(filename: string, data: JsPathData): PathWithInfo
|
|
312
|
+
getAssetPathWithInfo(filename: string, data: JsPathData, assetInfo?: AssetInfo | undefined | null): PathWithInfo
|
|
313
313
|
getPath(filename: string, data: JsPathData): string
|
|
314
314
|
getPathWithInfo(filename: string, data: JsPathData): PathWithInfo
|
|
315
315
|
addFileDependencies(deps: Array<string>): void
|
|
@@ -334,7 +334,7 @@ export declare class JsCompilation {
|
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
export declare class JsCompiler {
|
|
337
|
-
constructor(compilerPath: string, options: RawOptions, builtinPlugins: BuiltinPlugin[], registerJsTaps: RegisterJsTaps, outputFilesystem: ThreadsafeNodeFS, intermediateFilesystem: ThreadsafeNodeFS | undefined | null, inputFilesystem: ThreadsafeNodeFS | undefined | null, resolverFactoryReference: JsResolverFactory, unsafeFastDrop: boolean, platform: RawCompilerPlatform)
|
|
337
|
+
constructor(compilerPath: string, options: RawOptions, builtinPlugins: BuiltinPlugin[], registerJsTaps: RegisterJsTaps, outputFilesystem: ThreadsafeNodeFS, intermediateFilesystem: ThreadsafeNodeFS | undefined | null, inputFilesystem: ThreadsafeNodeFS | undefined | null, resolverFactoryReference: JsResolverFactory, unsafeFastDrop: boolean, platform: RawCompilerPlatform, infrastructureLogCallback: (logs: JsLog[]) => void)
|
|
338
338
|
setNonSkippableRegisters(kinds: Array<RegisterJsTapKind>): void
|
|
339
339
|
/** Build with the given option passed to the constructor */
|
|
340
340
|
build(callback: (err: null | Error) => void): void
|
|
@@ -408,8 +408,8 @@ export declare class JsExportsInfo {
|
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
export declare class JsLoaderCache {
|
|
411
|
-
get(loaderIndex: number, content: string | Uint8Array, existing: JsLoaderDependencies): JsLoaderCacheEntry | null
|
|
412
|
-
store(loaderIndex: number, output: JsLoaderCacheEntry): void
|
|
411
|
+
get(loaderIndex: number, content: string | Uint8Array, existing: JsLoaderDependencies): Promise<JsLoaderCacheEntry | null>
|
|
412
|
+
store(loaderIndex: number, output: JsLoaderCacheEntry): Promise<void>
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
export declare class JsModuleGraph {
|
|
@@ -440,7 +440,7 @@ export declare class JsResolverFactory {
|
|
|
440
440
|
|
|
441
441
|
export declare class JsStats {
|
|
442
442
|
toJson(jsOptions: JsStatsOptions): JsStatsCompilation
|
|
443
|
-
getLogging(acceptedTypes: number): Array<
|
|
443
|
+
getLogging(acceptedTypes: number): Array<JsLog>
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
export declare class KnownBuildInfo {
|
|
@@ -1008,6 +1008,13 @@ export declare enum JsLoaderState {
|
|
|
1008
1008
|
Normal = 'Normal'
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
|
+
export interface JsLog {
|
|
1012
|
+
name: string
|
|
1013
|
+
type: string
|
|
1014
|
+
args: Array<string | number>
|
|
1015
|
+
trace?: Array<string>
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1011
1018
|
export interface JsModuleDescriptor {
|
|
1012
1019
|
identifier: string
|
|
1013
1020
|
name: string
|
|
@@ -1472,13 +1479,6 @@ export interface JsStatsGetAssets {
|
|
|
1472
1479
|
assetsByChunkName: Array<JsStatsAssetsByChunkName>
|
|
1473
1480
|
}
|
|
1474
1481
|
|
|
1475
|
-
export interface JsStatsLogging {
|
|
1476
|
-
name: string
|
|
1477
|
-
type: string
|
|
1478
|
-
args?: Array<string>
|
|
1479
|
-
trace?: Array<string>
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
1482
|
export interface JsStatsModule {
|
|
1483
1483
|
commonAttributes: JsStatsModuleCommonAttributes
|
|
1484
1484
|
dependent?: boolean
|
|
@@ -1946,6 +1946,7 @@ export interface RawCacheGroupOptions {
|
|
|
1946
1946
|
|
|
1947
1947
|
export interface RawCacheOptionsMemory {
|
|
1948
1948
|
maxGenerations?: number
|
|
1949
|
+
snapshot?: RawSnapshotOptions
|
|
1949
1950
|
}
|
|
1950
1951
|
|
|
1951
1952
|
export interface RawCacheOptionsPersistent {
|
|
@@ -2830,7 +2831,7 @@ export interface RawOptions {
|
|
|
2830
2831
|
module: RawModuleOptions
|
|
2831
2832
|
optimization: RawOptimizationOptions
|
|
2832
2833
|
stats: RawStatsOptions
|
|
2833
|
-
cache: boolean | { type: "memory" } | ({ type: "persistent" } & RawCacheOptionsPersistent)
|
|
2834
|
+
cache: boolean | { type: "memory", snapshot: RawSnapshotOptions } | ({ type: "persistent" } & RawCacheOptionsPersistent)
|
|
2834
2835
|
experiments: RawExperiments
|
|
2835
2836
|
incremental?: false | { [key: string]: boolean }
|
|
2836
2837
|
node?: RawNodeOption
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-ports/rspack-binding",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2-beta.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "web-infra-dev/rspack"
|
|
20
20
|
}
|
|
21
|
-
}
|
|
21
|
+
}
|
|
Binary file
|