@rspack-canary/browser 1.5.8-canary-e350b761-20250924173613 → 1.5.8-canary-15732646-20250926173747

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.
@@ -589,6 +589,7 @@ export declare enum BuiltinPluginName {
589
589
  RstestPlugin = 'RstestPlugin',
590
590
  RslibPlugin = 'RslibPlugin',
591
591
  CircularDependencyRspackPlugin = 'CircularDependencyRspackPlugin',
592
+ URLPlugin = 'URLPlugin',
592
593
  JsLoaderRspackPlugin = 'JsLoaderRspackPlugin',
593
594
  LazyCompilationPlugin = 'LazyCompilationPlugin',
594
595
  ModuleInfoHeaderPlugin = 'ModuleInfoHeaderPlugin',
@@ -2285,6 +2286,14 @@ export interface RawIntegrityItem {
2285
2286
  integrity: string
2286
2287
  }
2287
2288
 
2289
+ export declare enum RawJavascriptParserCommonjsExports {
2290
+ SkipInEsm = 'skipInEsm'
2291
+ }
2292
+
2293
+ export interface RawJavascriptParserCommonjsOptions {
2294
+ exports?: boolean | 'skipInEsm'
2295
+ }
2296
+
2288
2297
  export interface RawJavascriptParserOptions {
2289
2298
  dynamicImportMode?: string
2290
2299
  dynamicImportPreload?: string
@@ -2317,27 +2326,28 @@ export interface RawJavascriptParserOptions {
2317
2326
  * @experimental
2318
2327
  */
2319
2328
  requireResolve?: boolean
2320
- /**
2321
- * This option is experimental in Rspack only and subject to change or be removed anytime.
2322
- * @experimental
2323
- */
2324
- importDynamic?: boolean
2325
- commonjsMagicComments?: boolean
2326
- /**
2327
- * This option is experimental in Rspack only and subject to change or be removed anytime.
2328
- * @experimental
2329
- */
2330
- inlineConst?: boolean
2331
- /**
2332
- * This option is experimental in Rspack only and subject to change or be removed anytime.
2333
- * @experimental
2334
- */
2335
- typeReexportsPresence?: string
2336
- /**
2337
- * This option is experimental in Rspack only and subject to change or be removed anytime.
2338
- * @experimental
2339
- */
2340
- jsx?: boolean
2329
+ commonjs?: boolean | { exports?: boolean | 'skipInEsm' }
2330
+ /**
2331
+ * This option is experimental in Rspack only and subject to change or be removed anytime.
2332
+ * @experimental
2333
+ */
2334
+ importDynamic?: boolean
2335
+ commonjsMagicComments?: boolean
2336
+ /**
2337
+ * This option is experimental in Rspack only and subject to change or be removed anytime.
2338
+ * @experimental
2339
+ */
2340
+ inlineConst?: boolean
2341
+ /**
2342
+ * This option is experimental in Rspack only and subject to change or be removed anytime.
2343
+ * @experimental
2344
+ */
2345
+ typeReexportsPresence?: string
2346
+ /**
2347
+ * This option is experimental in Rspack only and subject to change or be removed anytime.
2348
+ * @experimental
2349
+ */
2350
+ jsx?: boolean
2341
2351
  }
2342
2352
 
2343
2353
  export interface RawJsonGeneratorOptions {
@@ -94,6 +94,7 @@ export const JsRspackSeverity = __napiModule.exports.JsRspackSeverity;
94
94
  export const loadBrowserslist = __napiModule.exports.loadBrowserslist;
95
95
  export const minify = __napiModule.exports.minify;
96
96
  export const minifySync = __napiModule.exports.minifySync;
97
+ export const RawJavascriptParserCommonjsExports = __napiModule.exports.RawJavascriptParserCommonjsExports;
97
98
  export const RawRuleSetConditionType = __napiModule.exports.RawRuleSetConditionType;
98
99
  export const registerGlobalTrace = __napiModule.exports.registerGlobalTrace;
99
100
  export const RegisterJsTapKind = __napiModule.exports.RegisterJsTapKind;
Binary file
@@ -735,7 +735,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
735
735
  high: "high";
736
736
  }>>;
737
737
  importMeta: z.ZodOptional<z.ZodBoolean>;
738
- url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
738
+ url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodLiteral<"new-url-relative">, z.ZodBoolean]>>;
739
739
  exprContextCritical: z.ZodOptional<z.ZodBoolean>;
740
740
  wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
741
741
  unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
@@ -765,6 +765,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
765
765
  requireAsExpression: z.ZodOptional<z.ZodBoolean>;
766
766
  requireDynamic: z.ZodOptional<z.ZodBoolean>;
767
767
  requireResolve: z.ZodOptional<z.ZodBoolean>;
768
+ commonjs: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
769
+ exports: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skipInEsm">]>>;
770
+ }, z.core.$strict>]>>;
768
771
  importDynamic: z.ZodOptional<z.ZodBoolean>;
769
772
  inlineConst: z.ZodOptional<z.ZodBoolean>;
770
773
  typeReexportsPresence: z.ZodOptional<z.ZodEnum<{
@@ -789,7 +792,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
789
792
  high: "high";
790
793
  }>>;
791
794
  importMeta: z.ZodOptional<z.ZodBoolean>;
792
- url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
795
+ url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodLiteral<"new-url-relative">, z.ZodBoolean]>>;
793
796
  exprContextCritical: z.ZodOptional<z.ZodBoolean>;
794
797
  wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
795
798
  unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
@@ -819,6 +822,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
819
822
  requireAsExpression: z.ZodOptional<z.ZodBoolean>;
820
823
  requireDynamic: z.ZodOptional<z.ZodBoolean>;
821
824
  requireResolve: z.ZodOptional<z.ZodBoolean>;
825
+ commonjs: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
826
+ exports: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skipInEsm">]>>;
827
+ }, z.core.$strict>]>>;
822
828
  importDynamic: z.ZodOptional<z.ZodBoolean>;
823
829
  inlineConst: z.ZodOptional<z.ZodBoolean>;
824
830
  typeReexportsPresence: z.ZodOptional<z.ZodEnum<{
@@ -843,7 +849,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
843
849
  high: "high";
844
850
  }>>;
845
851
  importMeta: z.ZodOptional<z.ZodBoolean>;
846
- url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
852
+ url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodLiteral<"new-url-relative">, z.ZodBoolean]>>;
847
853
  exprContextCritical: z.ZodOptional<z.ZodBoolean>;
848
854
  wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
849
855
  unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
@@ -873,6 +879,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
873
879
  requireAsExpression: z.ZodOptional<z.ZodBoolean>;
874
880
  requireDynamic: z.ZodOptional<z.ZodBoolean>;
875
881
  requireResolve: z.ZodOptional<z.ZodBoolean>;
882
+ commonjs: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
883
+ exports: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skipInEsm">]>>;
884
+ }, z.core.$strict>]>>;
876
885
  importDynamic: z.ZodOptional<z.ZodBoolean>;
877
886
  inlineConst: z.ZodOptional<z.ZodBoolean>;
878
887
  typeReexportsPresence: z.ZodOptional<z.ZodEnum<{
@@ -897,7 +906,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
897
906
  high: "high";
898
907
  }>>;
899
908
  importMeta: z.ZodOptional<z.ZodBoolean>;
900
- url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
909
+ url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodLiteral<"new-url-relative">, z.ZodBoolean]>>;
901
910
  exprContextCritical: z.ZodOptional<z.ZodBoolean>;
902
911
  wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
903
912
  unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
@@ -927,6 +936,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
927
936
  requireAsExpression: z.ZodOptional<z.ZodBoolean>;
928
937
  requireDynamic: z.ZodOptional<z.ZodBoolean>;
929
938
  requireResolve: z.ZodOptional<z.ZodBoolean>;
939
+ commonjs: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
940
+ exports: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skipInEsm">]>>;
941
+ }, z.core.$strict>]>>;
930
942
  importDynamic: z.ZodOptional<z.ZodBoolean>;
931
943
  inlineConst: z.ZodOptional<z.ZodBoolean>;
932
944
  typeReexportsPresence: z.ZodOptional<z.ZodEnum<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/browser",
3
- "version": "1.5.8-canary-e350b761-20250924173613",
3
+ "version": "1.5.8-canary-15732646-20250926173747",
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.",
@@ -33,7 +33,7 @@
33
33
  "@rspack/lite-tapable": "1.0.1",
34
34
  "@swc/types": "0.1.25",
35
35
  "@types/watchpack": "^2.4.4",
36
- "memfs": "4.38.2",
36
+ "memfs": "4.46.0",
37
37
  "webpack-sources": "3.3.3"
38
38
  },
39
39
  "peerDependencies": {