@rspack-canary/core 1.5.6-canary-7c0091e4-20250920173916 → 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 +4 -0
- package/dist/index.js +8 -6
- package/dist/schema/config.d.ts +4 -0
- package/package.json +2 -2
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.js
CHANGED
|
@@ -3952,6 +3952,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
3952
3952
|
requireDynamic: parser.requireDynamic,
|
|
3953
3953
|
requireResolve: parser.requireResolve,
|
|
3954
3954
|
importDynamic: parser.importDynamic,
|
|
3955
|
+
commonjsMagicComments: parser.commonjsMagicComments,
|
|
3955
3956
|
inlineConst: parser.inlineConst,
|
|
3956
3957
|
typeReexportsPresence: parser.typeReexportsPresence
|
|
3957
3958
|
};
|
|
@@ -8653,7 +8654,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
8653
8654
|
}, applyExperimentsDefaults = (experiments, { production, development })=>{
|
|
8654
8655
|
defaults_F(experiments, "cache", ()=>development), D(experiments, "futureDefaults", !1), D(experiments, "lazyCompilation", !1), D(experiments, "asyncWebAssembly", experiments.futureDefaults), D(experiments, "css", !!experiments.futureDefaults || void 0), D(experiments, "layers", !1), !1 === experiments.topLevelAwait && console.warn("`experiments.topLevelAwait` config has been deprecated and will be removed in Rspack v2.0. Top-level await will be always enabled. Please remove this option from your Rspack configuration."), D(experiments, "topLevelAwait", !0), D(experiments, "buildHttp", void 0), experiments.buildHttp && "object" == typeof experiments.buildHttp && D(experiments.buildHttp, "upgrade", !1), D(experiments, "incremental", {}), "object" == typeof experiments.incremental && (D(experiments.incremental, "silent", !0), D(experiments.incremental, "make", !0), D(experiments.incremental, "inferAsyncModules", !0), D(experiments.incremental, "providedExports", !0), D(experiments.incremental, "dependenciesDiagnostics", !0), D(experiments.incremental, "sideEffects", !0), D(experiments.incremental, "buildChunkGraph", !1), D(experiments.incremental, "moduleIds", !0), D(experiments.incremental, "chunkIds", !0), D(experiments.incremental, "modulesHashes", !0), D(experiments.incremental, "modulesCodegen", !0), D(experiments.incremental, "modulesRuntimeRequirements", !0), D(experiments.incremental, "chunksRuntimeRequirements", !0), D(experiments.incremental, "chunksHashes", !0), D(experiments.incremental, "chunksRender", !0), D(experiments.incremental, "emitAssets", !0)), D(experiments, "rspackFuture", {}), D(experiments, "parallelCodeSplitting", !1), D(experiments, "parallelLoader", !1), D(experiments, "useInputFileSystem", !1), D(experiments, "inlineConst", !1), D(experiments, "inlineEnum", !1), D(experiments, "typeReexportsPresence", !1), D(experiments, "lazyBarrel", !1);
|
|
8655
8656
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
8656
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.
|
|
8657
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.7-canary-a3406c0a-20250922173625"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
8657
8658
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst })=>{
|
|
8658
8659
|
if (assertNotNill(module.parser), assertNotNill(module.generator), defaults_F(module.parser, "asset", ()=>({})), assertNotNill(module.parser.asset), defaults_F(module.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module.parser.asset.dataUrlCondition && D(module.parser.asset.dataUrlCondition, "maxSize", 8096), defaults_F(module.parser, "javascript", ()=>({})), assertNotNill(module.parser.javascript), ((parserOptions, { usedExports, inlineConst })=>{
|
|
8659
8660
|
D(parserOptions, "dynamicImportMode", "lazy"), D(parserOptions, "dynamicImportPrefetch", !1), D(parserOptions, "dynamicImportPreload", !1), D(parserOptions, "url", !0), D(parserOptions, "exprContextCritical", !0), D(parserOptions, "unknownContextCritical", !0), D(parserOptions, "wrappedContextCritical", !1), D(parserOptions, "wrappedContextRegExp", /.*/), D(parserOptions, "strictExportPresence", !1), D(parserOptions, "requireAsExpression", !0), D(parserOptions, "requireDynamic", !0), D(parserOptions, "requireResolve", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
|
|
@@ -10297,7 +10298,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
10297
10298
|
});
|
|
10298
10299
|
}
|
|
10299
10300
|
}
|
|
10300
|
-
let CORE_VERSION = "1.5.
|
|
10301
|
+
let CORE_VERSION = "1.5.7-canary-a3406c0a-20250922173625", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
10301
10302
|
|
|
10302
10303
|
Help:
|
|
10303
10304
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -11581,7 +11582,7 @@ Help:
|
|
|
11581
11582
|
obj.children = this.stats.map((stat, idx)=>{
|
|
11582
11583
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
11583
11584
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
11584
|
-
}), childOptions.version && (obj.rspackVersion = "1.5.
|
|
11585
|
+
}), childOptions.version && (obj.rspackVersion = "1.5.7-canary-a3406c0a-20250922173625", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
11585
11586
|
let mapError = (j, obj)=>({
|
|
11586
11587
|
...obj,
|
|
11587
11588
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -12477,7 +12478,7 @@ Help:
|
|
|
12477
12478
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
12478
12479
|
},
|
|
12479
12480
|
version: (object)=>{
|
|
12480
|
-
object.version = "5.75.0", object.rspackVersion = "1.5.
|
|
12481
|
+
object.version = "5.75.0", object.rspackVersion = "1.5.7-canary-a3406c0a-20250922173625";
|
|
12481
12482
|
},
|
|
12482
12483
|
env: (object, _compilation, _context, { _env })=>{
|
|
12483
12484
|
object.env = _env;
|
|
@@ -15010,7 +15011,7 @@ Help:
|
|
|
15010
15011
|
]).or(literal(!1)), strictExportPresence = schemas_boolean(), worker = schemas_array(schemas_string()).or(schemas_boolean()), overrideStrict = schemas_enum([
|
|
15011
15012
|
"strict",
|
|
15012
15013
|
"non-strict"
|
|
15013
|
-
]), requireAsExpression = schemas_boolean(), requireDynamic = schemas_boolean(), requireResolve = schemas_boolean(), importDynamic = schemas_boolean(), inlineConst = schemas_boolean(), typeReexportsPresence = schemas_enum([
|
|
15014
|
+
]), requireAsExpression = schemas_boolean(), requireDynamic = schemas_boolean(), requireResolve = schemas_boolean(), importDynamic = schemas_boolean(), commonjsMagicComments = schemas_boolean(), inlineConst = schemas_boolean(), typeReexportsPresence = schemas_enum([
|
|
15014
15015
|
"no-tolerant",
|
|
15015
15016
|
"tolerant",
|
|
15016
15017
|
"tolerant-no-check"
|
|
@@ -15031,6 +15032,7 @@ Help:
|
|
|
15031
15032
|
strictExportPresence: strictExportPresence,
|
|
15032
15033
|
worker: worker,
|
|
15033
15034
|
overrideStrict: overrideStrict,
|
|
15035
|
+
commonjsMagicComments: commonjsMagicComments,
|
|
15034
15036
|
requireAsExpression: requireAsExpression,
|
|
15035
15037
|
requireDynamic: requireDynamic,
|
|
15036
15038
|
requireResolve: requireResolve,
|
|
@@ -15792,7 +15794,7 @@ Help:
|
|
|
15792
15794
|
let _options = JSON.stringify(options || {});
|
|
15793
15795
|
return binding_default().transform(source, _options);
|
|
15794
15796
|
}
|
|
15795
|
-
let exports_rspackVersion = "1.5.
|
|
15797
|
+
let exports_rspackVersion = "1.5.7-canary-a3406c0a-20250922173625", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
15796
15798
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
15797
15799
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
15798
15800
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
package/dist/schema/config.d.ts
CHANGED
|
@@ -762,6 +762,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
762
762
|
strict: "strict";
|
|
763
763
|
"non-strict": "non-strict";
|
|
764
764
|
}>>;
|
|
765
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
765
766
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
766
767
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
767
768
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -814,6 +815,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
814
815
|
strict: "strict";
|
|
815
816
|
"non-strict": "non-strict";
|
|
816
817
|
}>>;
|
|
818
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
817
819
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
818
820
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
819
821
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -866,6 +868,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
866
868
|
strict: "strict";
|
|
867
869
|
"non-strict": "non-strict";
|
|
868
870
|
}>>;
|
|
871
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
869
872
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
870
873
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
871
874
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -918,6 +921,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
918
921
|
strict: "strict";
|
|
919
922
|
"non-strict": "non-strict";
|
|
920
923
|
}>>;
|
|
924
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
921
925
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
922
926
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
923
927
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/core",
|
|
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": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@module-federation/runtime-tools": "0.18.0",
|
|
62
62
|
"@rspack/lite-tapable": "1.0.1",
|
|
63
|
-
"@rspack/binding": "npm:@rspack-canary/binding@1.5.
|
|
63
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.5.7-canary-a3406c0a-20250922173625"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@swc/helpers": ">=0.5.1"
|