@rspack-canary/browser 1.5.6-canary-e598f284-20250921173624 → 1.5.7-canary-a3406c0a-20250922173625
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/dist/config/types.d.ts
CHANGED
|
@@ -796,6 +796,10 @@ export type JavascriptParserOptions = {
|
|
|
796
796
|
requireDynamic?: boolean;
|
|
797
797
|
requireResolve?: boolean;
|
|
798
798
|
importDynamic?: boolean;
|
|
799
|
+
/**
|
|
800
|
+
* Enable magic comments for CommonJS require() expressions.
|
|
801
|
+
*/
|
|
802
|
+
commonjsMagicComments?: boolean;
|
|
799
803
|
/** Inline const values in this module */
|
|
800
804
|
inlineConst?: boolean;
|
|
801
805
|
/** Whether to tolerant exportsPresence for type reexport */
|
package/dist/index.mjs
CHANGED
|
@@ -40455,6 +40455,7 @@ function getRawJavascriptParserOptions(parser) {
|
|
|
40455
40455
|
requireDynamic: parser.requireDynamic,
|
|
40456
40456
|
requireResolve: parser.requireResolve,
|
|
40457
40457
|
importDynamic: parser.importDynamic,
|
|
40458
|
+
commonjsMagicComments: parser.commonjsMagicComments,
|
|
40458
40459
|
inlineConst: parser.inlineConst,
|
|
40459
40460
|
typeReexportsPresence: parser.typeReexportsPresence
|
|
40460
40461
|
};
|
|
@@ -47098,7 +47099,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
47098
47099
|
if ("object" == typeof rspackFuture) {
|
|
47099
47100
|
D(rspackFuture, "bundlerInfo", {});
|
|
47100
47101
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
47101
|
-
D(rspackFuture.bundlerInfo, "version", "1.5.
|
|
47102
|
+
D(rspackFuture.bundlerInfo, "version", "1.5.7-canary-a3406c0a-20250922173625");
|
|
47102
47103
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
47103
47104
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
47104
47105
|
}
|
|
@@ -51197,7 +51198,7 @@ class MultiStats {
|
|
|
51197
51198
|
return obj;
|
|
51198
51199
|
});
|
|
51199
51200
|
if (childOptions.version) {
|
|
51200
|
-
obj.rspackVersion = "1.5.
|
|
51201
|
+
obj.rspackVersion = "1.5.7-canary-a3406c0a-20250922173625";
|
|
51201
51202
|
obj.version = "5.75.0";
|
|
51202
51203
|
}
|
|
51203
51204
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -52504,7 +52505,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
52504
52505
|
},
|
|
52505
52506
|
version: (object)=>{
|
|
52506
52507
|
object.version = "5.75.0";
|
|
52507
|
-
object.rspackVersion = "1.5.
|
|
52508
|
+
object.rspackVersion = "1.5.7-canary-a3406c0a-20250922173625";
|
|
52508
52509
|
},
|
|
52509
52510
|
env: (object, _compilation, _context, { _env })=>{
|
|
52510
52511
|
object.env = _env;
|
|
@@ -55809,6 +55810,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55809
55810
|
const requireDynamic = schemas_boolean();
|
|
55810
55811
|
const requireResolve = schemas_boolean();
|
|
55811
55812
|
const importDynamic = schemas_boolean();
|
|
55813
|
+
const commonjsMagicComments = schemas_boolean();
|
|
55812
55814
|
const inlineConst = schemas_boolean();
|
|
55813
55815
|
const typeReexportsPresence = schemas_enum([
|
|
55814
55816
|
"no-tolerant",
|
|
@@ -55832,6 +55834,7 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55832
55834
|
strictExportPresence: strictExportPresence,
|
|
55833
55835
|
worker: worker,
|
|
55834
55836
|
overrideStrict: overrideStrict,
|
|
55837
|
+
commonjsMagicComments: commonjsMagicComments,
|
|
55835
55838
|
requireAsExpression: requireAsExpression,
|
|
55836
55839
|
requireDynamic: requireDynamic,
|
|
55837
55840
|
requireResolve: requireResolve,
|
|
@@ -56953,7 +56956,7 @@ function transformSync(source, options) {
|
|
|
56953
56956
|
const _options = JSON.stringify(options || {});
|
|
56954
56957
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
56955
56958
|
}
|
|
56956
|
-
const exports_rspackVersion = "1.5.
|
|
56959
|
+
const exports_rspackVersion = "1.5.7-canary-a3406c0a-20250922173625";
|
|
56957
56960
|
const exports_version = "5.75.0";
|
|
56958
56961
|
const exports_WebpackError = Error;
|
|
56959
56962
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -2322,6 +2322,7 @@ export interface RawJavascriptParserOptions {
|
|
|
2322
2322
|
* @experimental
|
|
2323
2323
|
*/
|
|
2324
2324
|
importDynamic?: boolean
|
|
2325
|
+
commonjsMagicComments?: boolean
|
|
2325
2326
|
/**
|
|
2326
2327
|
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2327
2328
|
* @experimental
|
|
Binary file
|
package/dist/schema/config.d.ts
CHANGED
|
@@ -761,6 +761,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
761
761
|
strict: "strict";
|
|
762
762
|
"non-strict": "non-strict";
|
|
763
763
|
}>>;
|
|
764
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
764
765
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
765
766
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
766
767
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -813,6 +814,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
813
814
|
strict: "strict";
|
|
814
815
|
"non-strict": "non-strict";
|
|
815
816
|
}>>;
|
|
817
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
816
818
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
817
819
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
818
820
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -865,6 +867,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
865
867
|
strict: "strict";
|
|
866
868
|
"non-strict": "non-strict";
|
|
867
869
|
}>>;
|
|
870
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
868
871
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
869
872
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
870
873
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -917,6 +920,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
917
920
|
strict: "strict";
|
|
918
921
|
"non-strict": "non-strict";
|
|
919
922
|
}>>;
|
|
923
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
920
924
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
921
925
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
922
926
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/browser",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.7-canary-a3406c0a-20250922173625",
|
|
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.",
|