@rspack-canary/browser 1.4.12-canary-becf0a0e-20250808091433 → 1.4.12-canary-51b82a4d-20250815075104

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.
@@ -81,6 +81,8 @@ export const RawExternalItemFnCtx = __napiModule.exports.RawExternalItemFnCtx;
81
81
  export const ReadonlyResourceData = __napiModule.exports.ReadonlyResourceData;
82
82
  export const ResolverFactory = __napiModule.exports.ResolverFactory;
83
83
  export const Sources = __napiModule.exports.Sources;
84
+ export const VirtualFileStore = __napiModule.exports.VirtualFileStore;
85
+ export const JsVirtualFileStore = __napiModule.exports.JsVirtualFileStore;
84
86
  export const async = __napiModule.exports.async;
85
87
  export const BuiltinPluginName = __napiModule.exports.BuiltinPluginName;
86
88
  export const cleanupGlobalTrace = __napiModule.exports.cleanupGlobalTrace;
Binary file
@@ -737,6 +737,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
737
737
  url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
738
738
  exprContextCritical: z.ZodOptional<z.ZodBoolean>;
739
739
  wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
740
+ unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
740
741
  wrappedContextRegExp: z.ZodOptional<z.ZodCustom<RegExp, RegExp>>;
741
742
  exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
742
743
  auto: "auto";
@@ -788,6 +789,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
788
789
  url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
789
790
  exprContextCritical: z.ZodOptional<z.ZodBoolean>;
790
791
  wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
792
+ unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
791
793
  wrappedContextRegExp: z.ZodOptional<z.ZodCustom<RegExp, RegExp>>;
792
794
  exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
793
795
  auto: "auto";
@@ -839,6 +841,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
839
841
  url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
840
842
  exprContextCritical: z.ZodOptional<z.ZodBoolean>;
841
843
  wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
844
+ unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
842
845
  wrappedContextRegExp: z.ZodOptional<z.ZodCustom<RegExp, RegExp>>;
843
846
  exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
844
847
  auto: "auto";
@@ -890,6 +893,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
890
893
  url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
891
894
  exprContextCritical: z.ZodOptional<z.ZodBoolean>;
892
895
  wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
896
+ unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
893
897
  wrappedContextRegExp: z.ZodOptional<z.ZodCustom<RegExp, RegExp>>;
894
898
  exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
895
899
  auto: "auto";
@@ -993,4 +997,12 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
993
997
  maxAssetSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<number>]>>;
994
998
  maxEntrypointSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<number>]>>;
995
999
  }, z.core.$strict>, z.ZodLiteral<false>]>>;
1000
+ lazyCompilation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
1001
+ imports: z.ZodOptional<z.ZodBoolean>;
1002
+ entries: z.ZodOptional<z.ZodBoolean>;
1003
+ test: z.ZodOptional<z.ZodUnion<[z.ZodCustom<RegExp, RegExp>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>;
1004
+ client: z.ZodOptional<z.ZodString>;
1005
+ serverUrl: z.ZodOptional<z.ZodString>;
1006
+ prefix: z.ZodOptional<z.ZodString>;
1007
+ }, z.core.$strip>]>>>;
996
1008
  }, z.core.$strict>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/browser",
3
- "version": "1.4.12-canary-becf0a0e-20250808091433",
3
+ "version": "1.4.12-canary-51b82a4d-20250815075104",
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,10 +32,10 @@
32
32
  "@napi-rs/wasm-runtime": "^1.0.1",
33
33
  "@rspack/lite-tapable": "1.0.1",
34
34
  "buffer": "^6.0.3",
35
- "memfs": "4.20.0"
35
+ "memfs": "4.36.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@rspack/binding": "npm:@rspack-canary/binding@1.4.12-canary-becf0a0e-20250808091433"
38
+ "@rspack/binding": "npm:@rspack-canary/binding@1.4.12-canary-51b82a4d-20250815075104"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@swc/helpers": ">=0.5.1"
@@ -1,29 +0,0 @@
1
- /**
2
- * The following code is modified based on
3
- * https://github.com/webpack/webpack/blob/4b4ca3b/lib/NormalModuleReplacementPlugin.js
4
- *
5
- * MIT Licensed
6
- * Author Tobias Koppers @sokra
7
- * Copyright (c) JS Foundation and other contributors
8
- * https://github.com/webpack/webpack/blob/main/LICENSE
9
- */
10
- import type { Compiler } from "../Compiler";
11
- import type { ResolveData } from "../Module";
12
- type ModuleReplacer = (createData: ResolveData) => void;
13
- export declare class NormalModuleReplacementPlugin {
14
- readonly resourceRegExp: RegExp;
15
- readonly newResource: string | ModuleReplacer;
16
- /**
17
- * Create an instance of the plugin
18
- * @param resourceRegExp the resource matcher
19
- * @param newResource the resource replacement
20
- */
21
- constructor(resourceRegExp: RegExp, newResource: string | ModuleReplacer);
22
- /**
23
- * Apply the plugin
24
- * @param compiler the compiler instance
25
- * @returns
26
- */
27
- apply(compiler: Compiler): void;
28
- }
29
- export {};