@rspack-debug/browser 2.0.4 → 2.0.6

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.
@@ -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: Array<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)
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
@@ -2139,13 +2139,30 @@ 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
2157
+ }
2158
+
2159
+ export interface RawDeterministicModuleIdsPluginOptions {
2160
+ context?: string
2161
+ test?: (module: Module) => boolean
2162
+ maxLength?: number
2163
+ salt?: number
2164
+ fixedLength?: boolean
2165
+ failOnConflict?: boolean
2149
2166
  }
2150
2167
 
2151
2168
  export interface RawDllEntryPluginOptions {
@@ -2199,6 +2216,7 @@ export interface RawEntryDynamicResult {
2199
2216
 
2200
2217
  export interface RawEnvironment {
2201
2218
  const: boolean
2219
+ computedProperty: boolean
2202
2220
  methodShorthand: boolean
2203
2221
  arrowFunction: boolean
2204
2222
  nodePrefixForCoreModules: boolean
@@ -2254,6 +2272,7 @@ export interface RawExternalItemFnResult {
2254
2272
 
2255
2273
  export interface RawExternalsPluginOptions {
2256
2274
  type: string
2275
+ fallbackType?: string
2257
2276
  externals: (string | RegExp | Record<string, string | boolean | string[] | Record<string, string[]>> | ((...args: any[]) => any))[]
2258
2277
  placeInInitial: boolean
2259
2278
  }
@@ -2926,6 +2945,11 @@ export interface RawRstestPluginOptions {
2926
2945
  preserveNewUrl?: Array<string>
2927
2946
  globals?: boolean
2928
2947
  injectDynamicImportOrigin?: boolean | { functionName?: string }
2948
+ injectRequireResolveOrigin?: boolean | { functionName?: string }
2949
+ }
2950
+
2951
+ export interface RawRstestRequireResolveOriginOptions {
2952
+ functionName?: string
2929
2953
  }
2930
2954
 
2931
2955
  export interface RawRuleSetCondition {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-debug/browser",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",
@@ -32,13 +32,13 @@
32
32
  "@emnapi/core": "1.10.0",
33
33
  "@emnapi/runtime": "1.10.0",
34
34
  "@napi-rs/wasm-runtime": "1.1.4",
35
- "@rspack/lite-tapable": "1.1.0",
35
+ "@rspack/lite-tapable": "1.1.1",
36
36
  "@swc/types": "0.1.26",
37
- "memfs": "4.57.2",
37
+ "memfs": "4.57.3",
38
38
  "webpack-sources": "3.3.4"
39
39
  },
40
40
  "peerDependencies": {
41
- "@swc/helpers": ">=0.5.1"
41
+ "@swc/helpers": "^0.5.23"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "@swc/helpers": {