@rspack/binding 2.0.4 → 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.
Files changed (2) hide show
  1. package/napi-binding.d.ts +15 -0
  2. package/package.json +11 -11
package/napi-binding.d.ts CHANGED
@@ -2139,13 +2139,21 @@ export interface RawCssModuleGeneratorOptions {
2139
2139
  export interface RawCssModuleParserOptions {
2140
2140
  namedExports?: boolean
2141
2141
  url?: boolean
2142
+ import?: boolean
2142
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
2143
2147
  }
2144
2148
 
2145
2149
  export interface RawCssParserOptions {
2146
2150
  namedExports?: boolean
2147
2151
  url?: boolean
2152
+ import?: boolean
2148
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
2149
2157
  }
2150
2158
 
2151
2159
  export interface RawDllEntryPluginOptions {
@@ -2199,6 +2207,7 @@ export interface RawEntryDynamicResult {
2199
2207
 
2200
2208
  export interface RawEnvironment {
2201
2209
  const: boolean
2210
+ computedProperty: boolean
2202
2211
  methodShorthand: boolean
2203
2212
  arrowFunction: boolean
2204
2213
  nodePrefixForCoreModules: boolean
@@ -2254,6 +2263,7 @@ export interface RawExternalItemFnResult {
2254
2263
 
2255
2264
  export interface RawExternalsPluginOptions {
2256
2265
  type: string
2266
+ fallbackType?: string
2257
2267
  externals: (string | RegExp | Record<string, string | boolean | string[] | Record<string, string[]>> | ((...args: any[]) => any))[]
2258
2268
  placeInInitial: boolean
2259
2269
  }
@@ -2926,6 +2936,11 @@ export interface RawRstestPluginOptions {
2926
2936
  preserveNewUrl?: Array<string>
2927
2937
  globals?: boolean
2928
2938
  injectDynamicImportOrigin?: boolean | { functionName?: string }
2939
+ injectRequireResolveOrigin?: boolean | { functionName?: string }
2940
+ }
2941
+
2942
+ export interface RawRstestRequireResolveOriginOptions {
2943
+ functionName?: string
2929
2944
  }
2930
2945
 
2931
2946
  export interface RawRuleSetCondition {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/binding",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "license": "MIT",
5
5
  "description": "Node binding for rspack",
6
6
  "main": "binding.js",
@@ -54,16 +54,16 @@
54
54
  }
55
55
  },
56
56
  "optionalDependencies": {
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"
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",