@rspack/binding 2.0.3 → 2.0.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/napi-binding.d.ts +12 -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
|
}
|
|
@@ -2303,12 +2296,13 @@ export interface RawFuncUseCtx {
|
|
|
2303
2296
|
}
|
|
2304
2297
|
|
|
2305
2298
|
export interface RawGeneratorOptions {
|
|
2306
|
-
type: "asset" | "asset/inline" | "asset/resource" | "css" | "css/auto" | "css/module" | "json"
|
|
2299
|
+
type: "asset" | "asset/inline" | "asset/resource" | "css" | "css/auto" | "css/global" | "css/module" | "json"
|
|
2307
2300
|
asset?: RawAssetGeneratorOptions
|
|
2308
2301
|
assetInline?: RawAssetInlineGeneratorOptions
|
|
2309
2302
|
assetResource?: RawAssetResourceGeneratorOptions
|
|
2310
2303
|
css?: RawCssGeneratorOptions
|
|
2311
|
-
cssAuto?:
|
|
2304
|
+
cssAuto?: RawCssModuleGeneratorOptions
|
|
2305
|
+
cssGlobal?: RawCssModuleGeneratorOptions
|
|
2312
2306
|
cssModule?: RawCssModuleGeneratorOptions
|
|
2313
2307
|
json?: RawJsonGeneratorOptions
|
|
2314
2308
|
}
|
|
@@ -2353,7 +2347,6 @@ export interface RawHtmlRspackPluginOptions {
|
|
|
2353
2347
|
}
|
|
2354
2348
|
|
|
2355
2349
|
export interface RawHttpExternalsRspackPluginOptions {
|
|
2356
|
-
css: boolean
|
|
2357
2350
|
webAsync: boolean
|
|
2358
2351
|
}
|
|
2359
2352
|
|
|
@@ -2778,10 +2771,11 @@ export interface RawOutputOptions {
|
|
|
2778
2771
|
}
|
|
2779
2772
|
|
|
2780
2773
|
export interface RawParserOptions {
|
|
2781
|
-
type: "asset" | "css" | "css/auto" | "css/module" | "javascript" | "javascript/auto" | "javascript/dynamic" | "javascript/esm" | "json"
|
|
2774
|
+
type: "asset" | "css" | "css/auto" | "css/global" | "css/module" | "javascript" | "javascript/auto" | "javascript/dynamic" | "javascript/esm" | "json"
|
|
2782
2775
|
asset?: RawAssetParserOptions
|
|
2783
2776
|
css?: RawCssParserOptions
|
|
2784
|
-
cssAuto?:
|
|
2777
|
+
cssAuto?: RawCssModuleParserOptions
|
|
2778
|
+
cssGlobal?: RawCssModuleParserOptions
|
|
2785
2779
|
cssModule?: RawCssModuleParserOptions
|
|
2786
2780
|
javascript?: RawJavascriptParserOptions
|
|
2787
2781
|
json?: RawJsonParserOptions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
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-win32-arm64-msvc": "2.0.
|
|
58
|
-
"@rspack/binding-darwin-arm64": "2.0.
|
|
59
|
-
"@rspack/binding-linux-arm64-gnu": "2.0.
|
|
60
|
-
"@rspack/binding-
|
|
61
|
-
"@rspack/binding-
|
|
62
|
-
"@rspack/binding-
|
|
63
|
-
"@rspack/binding-
|
|
64
|
-
"@rspack/binding-
|
|
65
|
-
"@rspack/binding-linux-x64-musl": "2.0.
|
|
66
|
-
"@rspack/binding-
|
|
57
|
+
"@rspack/binding-win32-arm64-msvc": "2.0.4",
|
|
58
|
+
"@rspack/binding-darwin-arm64": "2.0.4",
|
|
59
|
+
"@rspack/binding-linux-arm64-gnu": "2.0.4",
|
|
60
|
+
"@rspack/binding-linux-arm64-musl": "2.0.4",
|
|
61
|
+
"@rspack/binding-win32-ia32-msvc": "2.0.4",
|
|
62
|
+
"@rspack/binding-wasm32-wasi": "2.0.4",
|
|
63
|
+
"@rspack/binding-win32-x64-msvc": "2.0.4",
|
|
64
|
+
"@rspack/binding-linux-x64-gnu": "2.0.4",
|
|
65
|
+
"@rspack/binding-linux-x64-musl": "2.0.4",
|
|
66
|
+
"@rspack/binding-darwin-x64": "2.0.4"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build:dev": "node scripts/build.js",
|