@rspack/binding 2.0.3 → 2.0.5
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 +27 -18
- package/package.json +12 -12
package/napi-binding.d.ts
CHANGED
|
@@ -603,6 +603,7 @@ export declare enum BuiltinPluginName {
|
|
|
603
603
|
DllReferenceAgencyPlugin = 'DllReferenceAgencyPlugin',
|
|
604
604
|
LibManifestPlugin = 'LibManifestPlugin',
|
|
605
605
|
FlagAllModulesAsUsedPlugin = 'FlagAllModulesAsUsedPlugin',
|
|
606
|
+
CssHttpExternalsRspackPlugin = 'CssHttpExternalsRspackPlugin',
|
|
606
607
|
HttpExternalsRspackPlugin = 'HttpExternalsRspackPlugin',
|
|
607
608
|
CopyRspackPlugin = 'CopyRspackPlugin',
|
|
608
609
|
HtmlRspackPlugin = 'HtmlRspackPlugin',
|
|
@@ -614,6 +615,7 @@ export declare enum BuiltinPluginName {
|
|
|
614
615
|
RsdoctorPlugin = 'RsdoctorPlugin',
|
|
615
616
|
RstestPlugin = 'RstestPlugin',
|
|
616
617
|
RslibPlugin = 'RslibPlugin',
|
|
618
|
+
CircularModulesInfoPlugin = 'CircularModulesInfoPlugin',
|
|
617
619
|
CircularDependencyRspackPlugin = 'CircularDependencyRspackPlugin',
|
|
618
620
|
URLPlugin = 'URLPlugin',
|
|
619
621
|
JsLoaderRspackPlugin = 'JsLoaderRspackPlugin',
|
|
@@ -2091,19 +2093,6 @@ export interface RawCopyRspackPluginOptions {
|
|
|
2091
2093
|
patterns: Array<RawCopyPattern>
|
|
2092
2094
|
}
|
|
2093
2095
|
|
|
2094
|
-
export interface RawCssAutoGeneratorOptions {
|
|
2095
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only"
|
|
2096
|
-
exportsOnly?: boolean
|
|
2097
|
-
localIdentName?: string
|
|
2098
|
-
esModule?: boolean
|
|
2099
|
-
}
|
|
2100
|
-
|
|
2101
|
-
export interface RawCssAutoParserOptions {
|
|
2102
|
-
namedExports?: boolean
|
|
2103
|
-
url?: boolean
|
|
2104
|
-
resolveImport?: boolean | ((context: { url: string, media: string | undefined, resourcePath: string, supports: string | undefined, layer: string | undefined }) => boolean)
|
|
2105
|
-
}
|
|
2106
|
-
|
|
2107
2096
|
export interface RawCssChunkingPluginOptions {
|
|
2108
2097
|
strict?: boolean
|
|
2109
2098
|
minSize?: number
|
|
@@ -2139,6 +2128,10 @@ export interface RawCssImportContext {
|
|
|
2139
2128
|
export interface RawCssModuleGeneratorOptions {
|
|
2140
2129
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only"
|
|
2141
2130
|
exportsOnly?: boolean
|
|
2131
|
+
localIdentHashDigest?: string
|
|
2132
|
+
localIdentHashDigestLength?: number
|
|
2133
|
+
localIdentHashFunction?: string
|
|
2134
|
+
localIdentHashSalt?: string
|
|
2142
2135
|
localIdentName?: string
|
|
2143
2136
|
esModule?: boolean
|
|
2144
2137
|
}
|
|
@@ -2146,13 +2139,21 @@ export interface RawCssModuleGeneratorOptions {
|
|
|
2146
2139
|
export interface RawCssModuleParserOptions {
|
|
2147
2140
|
namedExports?: boolean
|
|
2148
2141
|
url?: boolean
|
|
2142
|
+
import?: boolean
|
|
2149
2143
|
resolveImport?: boolean | ((context: { url: string, media: string | undefined, resourcePath: string, supports: string | undefined, layer: string | undefined }) => boolean)
|
|
2144
|
+
animation?: boolean
|
|
2145
|
+
customIdents?: boolean
|
|
2146
|
+
dashedIdents?: boolean
|
|
2150
2147
|
}
|
|
2151
2148
|
|
|
2152
2149
|
export interface RawCssParserOptions {
|
|
2153
2150
|
namedExports?: boolean
|
|
2154
2151
|
url?: boolean
|
|
2152
|
+
import?: boolean
|
|
2155
2153
|
resolveImport?: boolean | ((context: { url: string, media: string | undefined, resourcePath: string, supports: string | undefined, layer: string | undefined }) => boolean)
|
|
2154
|
+
animation?: boolean
|
|
2155
|
+
customIdents?: boolean
|
|
2156
|
+
dashedIdents?: boolean
|
|
2156
2157
|
}
|
|
2157
2158
|
|
|
2158
2159
|
export interface RawDllEntryPluginOptions {
|
|
@@ -2206,6 +2207,7 @@ export interface RawEntryDynamicResult {
|
|
|
2206
2207
|
|
|
2207
2208
|
export interface RawEnvironment {
|
|
2208
2209
|
const: boolean
|
|
2210
|
+
computedProperty: boolean
|
|
2209
2211
|
methodShorthand: boolean
|
|
2210
2212
|
arrowFunction: boolean
|
|
2211
2213
|
nodePrefixForCoreModules: boolean
|
|
@@ -2261,6 +2263,7 @@ export interface RawExternalItemFnResult {
|
|
|
2261
2263
|
|
|
2262
2264
|
export interface RawExternalsPluginOptions {
|
|
2263
2265
|
type: string
|
|
2266
|
+
fallbackType?: string
|
|
2264
2267
|
externals: (string | RegExp | Record<string, string | boolean | string[] | Record<string, string[]>> | ((...args: any[]) => any))[]
|
|
2265
2268
|
placeInInitial: boolean
|
|
2266
2269
|
}
|
|
@@ -2303,12 +2306,13 @@ export interface RawFuncUseCtx {
|
|
|
2303
2306
|
}
|
|
2304
2307
|
|
|
2305
2308
|
export interface RawGeneratorOptions {
|
|
2306
|
-
type: "asset" | "asset/inline" | "asset/resource" | "css" | "css/auto" | "css/module" | "json"
|
|
2309
|
+
type: "asset" | "asset/inline" | "asset/resource" | "css" | "css/auto" | "css/global" | "css/module" | "json"
|
|
2307
2310
|
asset?: RawAssetGeneratorOptions
|
|
2308
2311
|
assetInline?: RawAssetInlineGeneratorOptions
|
|
2309
2312
|
assetResource?: RawAssetResourceGeneratorOptions
|
|
2310
2313
|
css?: RawCssGeneratorOptions
|
|
2311
|
-
cssAuto?:
|
|
2314
|
+
cssAuto?: RawCssModuleGeneratorOptions
|
|
2315
|
+
cssGlobal?: RawCssModuleGeneratorOptions
|
|
2312
2316
|
cssModule?: RawCssModuleGeneratorOptions
|
|
2313
2317
|
json?: RawJsonGeneratorOptions
|
|
2314
2318
|
}
|
|
@@ -2353,7 +2357,6 @@ export interface RawHtmlRspackPluginOptions {
|
|
|
2353
2357
|
}
|
|
2354
2358
|
|
|
2355
2359
|
export interface RawHttpExternalsRspackPluginOptions {
|
|
2356
|
-
css: boolean
|
|
2357
2360
|
webAsync: boolean
|
|
2358
2361
|
}
|
|
2359
2362
|
|
|
@@ -2778,10 +2781,11 @@ export interface RawOutputOptions {
|
|
|
2778
2781
|
}
|
|
2779
2782
|
|
|
2780
2783
|
export interface RawParserOptions {
|
|
2781
|
-
type: "asset" | "css" | "css/auto" | "css/module" | "javascript" | "javascript/auto" | "javascript/dynamic" | "javascript/esm" | "json"
|
|
2784
|
+
type: "asset" | "css" | "css/auto" | "css/global" | "css/module" | "javascript" | "javascript/auto" | "javascript/dynamic" | "javascript/esm" | "json"
|
|
2782
2785
|
asset?: RawAssetParserOptions
|
|
2783
2786
|
css?: RawCssParserOptions
|
|
2784
|
-
cssAuto?:
|
|
2787
|
+
cssAuto?: RawCssModuleParserOptions
|
|
2788
|
+
cssGlobal?: RawCssModuleParserOptions
|
|
2785
2789
|
cssModule?: RawCssModuleParserOptions
|
|
2786
2790
|
javascript?: RawJavascriptParserOptions
|
|
2787
2791
|
json?: RawJsonParserOptions
|
|
@@ -2932,6 +2936,11 @@ export interface RawRstestPluginOptions {
|
|
|
2932
2936
|
preserveNewUrl?: Array<string>
|
|
2933
2937
|
globals?: boolean
|
|
2934
2938
|
injectDynamicImportOrigin?: boolean | { functionName?: string }
|
|
2939
|
+
injectRequireResolveOrigin?: boolean | { functionName?: string }
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
export interface RawRstestRequireResolveOriginOptions {
|
|
2943
|
+
functionName?: string
|
|
2935
2944
|
}
|
|
2936
2945
|
|
|
2937
2946
|
export interface RawRuleSetCondition {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@emnapi/runtime": "1.10.0",
|
|
24
24
|
"@napi-rs/cli": "3.6.2",
|
|
25
25
|
"@napi-rs/wasm-runtime": "1.1.4",
|
|
26
|
-
"@types/node": "^20.19.
|
|
26
|
+
"@types/node": "^20.19.41",
|
|
27
27
|
"emnapi": "1.10.0",
|
|
28
28
|
"typescript": "^6.0.3"
|
|
29
29
|
},
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"@rspack/binding-
|
|
58
|
-
"@rspack/binding-
|
|
59
|
-
"@rspack/binding-linux-arm64-
|
|
60
|
-
"@rspack/binding-
|
|
61
|
-
"@rspack/binding-
|
|
62
|
-
"@rspack/binding-
|
|
63
|
-
"@rspack/binding-
|
|
64
|
-
"@rspack/binding-
|
|
65
|
-
"@rspack/binding-linux-x64-
|
|
66
|
-
"@rspack/binding-linux-x64-
|
|
57
|
+
"@rspack/binding-darwin-arm64": "2.0.5",
|
|
58
|
+
"@rspack/binding-linux-arm64-gnu": "2.0.5",
|
|
59
|
+
"@rspack/binding-linux-arm64-musl": "2.0.5",
|
|
60
|
+
"@rspack/binding-win32-ia32-msvc": "2.0.5",
|
|
61
|
+
"@rspack/binding-win32-arm64-msvc": "2.0.5",
|
|
62
|
+
"@rspack/binding-darwin-x64": "2.0.5",
|
|
63
|
+
"@rspack/binding-win32-x64-msvc": "2.0.5",
|
|
64
|
+
"@rspack/binding-wasm32-wasi": "2.0.5",
|
|
65
|
+
"@rspack/binding-linux-x64-gnu": "2.0.5",
|
|
66
|
+
"@rspack/binding-linux-x64-musl": "2.0.5"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build:dev": "node scripts/build.js",
|