@rspack/binding 0.6.3 → 0.6.4
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 +34 -3
- package/package.json +10 -10
package/binding.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export class JsCompilation {
|
|
|
40
40
|
getMissingDependencies(): Array<string>
|
|
41
41
|
getBuildDependencies(): Array<string>
|
|
42
42
|
pushDiagnostic(severity: "error" | "warning", title: string, message: string): void
|
|
43
|
+
spliceDiagnostic(start: number, end: number, replaceWith: Array<JsDiagnostic>): void
|
|
43
44
|
pushNativeDiagnostics(diagnostics: ExternalObject<'Diagnostic[]'>): void
|
|
44
45
|
getStats(): JsStats
|
|
45
46
|
getAssetPath(filename: LocalJsFilename, data: JsPathData): string
|
|
@@ -112,6 +113,7 @@ export enum BuiltinPluginName {
|
|
|
112
113
|
IgnorePlugin = 'IgnorePlugin',
|
|
113
114
|
ProgressPlugin = 'ProgressPlugin',
|
|
114
115
|
EntryPlugin = 'EntryPlugin',
|
|
116
|
+
DynamicEntryPlugin = 'DynamicEntryPlugin',
|
|
115
117
|
ExternalsPlugin = 'ExternalsPlugin',
|
|
116
118
|
NodeTargetPlugin = 'NodeTargetPlugin',
|
|
117
119
|
ElectronTargetPlugin = 'ElectronTargetPlugin',
|
|
@@ -160,6 +162,7 @@ export enum BuiltinPluginName {
|
|
|
160
162
|
ModuleConcatenationPlugin = 'ModuleConcatenationPlugin',
|
|
161
163
|
CssModulesPlugin = 'CssModulesPlugin',
|
|
162
164
|
APIPlugin = 'APIPlugin',
|
|
165
|
+
RuntimeChunkPlugin = 'RuntimeChunkPlugin',
|
|
163
166
|
HttpExternalsRspackPlugin = 'HttpExternalsRspackPlugin',
|
|
164
167
|
CopyRspackPlugin = 'CopyRspackPlugin',
|
|
165
168
|
HtmlRspackPlugin = 'HtmlRspackPlugin',
|
|
@@ -296,6 +299,12 @@ export interface JsCreateData {
|
|
|
296
299
|
resource: string
|
|
297
300
|
}
|
|
298
301
|
|
|
302
|
+
export interface JsDiagnostic {
|
|
303
|
+
severity: 'error' | 'warning'
|
|
304
|
+
title: string
|
|
305
|
+
message: string
|
|
306
|
+
}
|
|
307
|
+
|
|
299
308
|
export interface JsExecuteModuleArg {
|
|
300
309
|
entry: string
|
|
301
310
|
runtimeModules: Array<string>
|
|
@@ -706,7 +715,7 @@ export interface RawContainerPluginOptions {
|
|
|
706
715
|
name: string
|
|
707
716
|
shareScope: string
|
|
708
717
|
library: RawLibraryOptions
|
|
709
|
-
runtime?: string
|
|
718
|
+
runtime?: false | string
|
|
710
719
|
filename?: string
|
|
711
720
|
exposes: Array<RawExposeOptions>
|
|
712
721
|
enhanced: boolean
|
|
@@ -735,6 +744,7 @@ export interface RawCopyPattern {
|
|
|
735
744
|
priority: number
|
|
736
745
|
globOptions: RawCopyGlobOptions
|
|
737
746
|
info?: RawInfo
|
|
747
|
+
transform?: (input: string | Buffer, absoluteFilename: string) => string | Buffer
|
|
738
748
|
}
|
|
739
749
|
|
|
740
750
|
export interface RawCopyRspackPluginOptions {
|
|
@@ -787,9 +797,19 @@ export interface RawCssParserOptions {
|
|
|
787
797
|
namedExports?: boolean
|
|
788
798
|
}
|
|
789
799
|
|
|
800
|
+
export interface RawDynamicEntryPluginOptions {
|
|
801
|
+
context: string
|
|
802
|
+
entry: () => Promise<RawEntryDynamicResult[]>
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
export interface RawEntryDynamicResult {
|
|
806
|
+
import: Array<string>
|
|
807
|
+
options: RawEntryOptions
|
|
808
|
+
}
|
|
809
|
+
|
|
790
810
|
export interface RawEntryOptions {
|
|
791
811
|
name?: string
|
|
792
|
-
runtime?: string
|
|
812
|
+
runtime?: false | string
|
|
793
813
|
chunkLoading?: string
|
|
794
814
|
asyncChunks?: boolean
|
|
795
815
|
publicPath?: string
|
|
@@ -929,6 +949,8 @@ export interface RawJavascriptParserOptions {
|
|
|
929
949
|
dynamicImportPreload: string
|
|
930
950
|
dynamicImportPrefetch: string
|
|
931
951
|
url: string
|
|
952
|
+
exprContextCritical: boolean
|
|
953
|
+
wrappedContextCritical: boolean
|
|
932
954
|
}
|
|
933
955
|
|
|
934
956
|
export interface RawLibraryAuxiliaryComment {
|
|
@@ -1079,6 +1101,7 @@ export interface RawOptions {
|
|
|
1079
1101
|
|
|
1080
1102
|
export interface RawOutputOptions {
|
|
1081
1103
|
path: string
|
|
1104
|
+
pathinfo: boolean | "verbose"
|
|
1082
1105
|
clean: boolean
|
|
1083
1106
|
publicPath: string
|
|
1084
1107
|
assetModuleFilename: string
|
|
@@ -1118,7 +1141,7 @@ export interface RawOutputOptions {
|
|
|
1118
1141
|
}
|
|
1119
1142
|
|
|
1120
1143
|
export interface RawParserOptions {
|
|
1121
|
-
type: "asset" | "css" | "css/auto" | "css/module" | "javascript"
|
|
1144
|
+
type: "asset" | "css" | "css/auto" | "css/module" | "javascript" | "javascript/auto" | "javascript/dynamic" | "javascript/esm"
|
|
1122
1145
|
asset?: RawAssetParserOptions
|
|
1123
1146
|
css?: RawCssParserOptions
|
|
1124
1147
|
cssAuto?: RawCssAutoParserOptions
|
|
@@ -1235,6 +1258,14 @@ export interface RawRuleSetLogicalConditions {
|
|
|
1235
1258
|
not?: RawRuleSetCondition
|
|
1236
1259
|
}
|
|
1237
1260
|
|
|
1261
|
+
export interface RawRuntimeChunkNameFnCtx {
|
|
1262
|
+
name: string
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
export interface RawRuntimeChunkOptions {
|
|
1266
|
+
name: string | ((entrypoint: { name: string }) => string)
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1238
1269
|
export interface RawSnapshotOptions {
|
|
1239
1270
|
resolve: RawSnapshotStrategy
|
|
1240
1271
|
module: RawSnapshotStrategy
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
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-arm64": "0.6.
|
|
26
|
-
"@rspack/binding-
|
|
27
|
-
"@rspack/binding-win32-
|
|
28
|
-
"@rspack/binding-linux-arm64-
|
|
29
|
-
"@rspack/binding-
|
|
30
|
-
"@rspack/binding-darwin-x64": "0.6.
|
|
31
|
-
"@rspack/binding-win32-x64-msvc": "0.6.
|
|
32
|
-
"@rspack/binding-linux-x64-gnu": "0.6.
|
|
33
|
-
"@rspack/binding-linux-x64-musl": "0.6.
|
|
25
|
+
"@rspack/binding-darwin-arm64": "0.6.4",
|
|
26
|
+
"@rspack/binding-win32-arm64-msvc": "0.6.4",
|
|
27
|
+
"@rspack/binding-win32-ia32-msvc": "0.6.4",
|
|
28
|
+
"@rspack/binding-linux-arm64-musl": "0.6.4",
|
|
29
|
+
"@rspack/binding-linux-arm64-gnu": "0.6.4",
|
|
30
|
+
"@rspack/binding-darwin-x64": "0.6.4",
|
|
31
|
+
"@rspack/binding-win32-x64-msvc": "0.6.4",
|
|
32
|
+
"@rspack/binding-linux-x64-gnu": "0.6.4",
|
|
33
|
+
"@rspack/binding-linux-x64-musl": "0.6.4"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build:debug": "node scripts/build.js",
|