@rspack/core 1.5.6 → 1.5.8
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/Compiler.d.ts +45 -32
- package/dist/MultiCompiler.d.ts +5 -2
- package/dist/RuntimeModule.d.ts +1 -1
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +5 -0
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -2
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -2
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -2
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RslibPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RstestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/URLPlugin.d.ts +9 -0
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
- package/dist/builtin-plugin/index.d.ts +2 -0
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/types.d.ts +13 -1
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +3 -2
- package/dist/index.js +71 -44
- package/dist/schema/config.d.ts +20 -4
- package/dist/schema/loaders.d.ts +1 -0
- package/dist/worker.js +3 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -728,7 +728,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
728
728
|
static STAGE_BASIC = 5;
|
|
729
729
|
static STAGE_ATTACH = 10;
|
|
730
730
|
static STAGE_TRIGGER = 20;
|
|
731
|
-
static __to_binding(
|
|
731
|
+
static __to_binding(module) {
|
|
732
732
|
return {
|
|
733
733
|
name: module.name,
|
|
734
734
|
stage: module.stage,
|
|
@@ -1518,7 +1518,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1518
1518
|
afterProcessAssets: new lite_tapable_namespaceObject.SyncHook([
|
|
1519
1519
|
"assets"
|
|
1520
1520
|
]),
|
|
1521
|
-
additionalAssets: ((name, stage, getArgs
|
|
1521
|
+
additionalAssets: ((name, stage, getArgs)=>{
|
|
1522
1522
|
let errorMessage = (reason)=>`Can't automatically convert plugin using Compilation.hooks.${name} to Compilation.hooks.processAssets because ${reason}.
|
|
1523
1523
|
BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a single Compilation.hooks.processAssets hook.`, getOptions = (options)=>{
|
|
1524
1524
|
let isString = "string" == typeof options;
|
|
@@ -1879,7 +1879,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
1879
1879
|
this.#rebuildModuleTask.exec(module.identifier(), f);
|
|
1880
1880
|
}
|
|
1881
1881
|
addRuntimeModule(chunk, runtimeModule) {
|
|
1882
|
-
runtimeModule.attach(this, chunk, this.chunkGraph), this.#inner.addRuntimeModule(chunk, RuntimeModule.__to_binding(
|
|
1882
|
+
runtimeModule.attach(this, chunk, this.chunkGraph), this.#inner.addRuntimeModule(chunk, RuntimeModule.__to_binding(runtimeModule));
|
|
1883
1883
|
}
|
|
1884
1884
|
addInclude(context, dependency, options, callback) {
|
|
1885
1885
|
this.#addIncludeDispatcher.call(context, dependency, options, callback);
|
|
@@ -2167,14 +2167,14 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
2167
2167
|
class DeterministicChunkIdsPlugin extends builtin_plugin_base.Xj {
|
|
2168
2168
|
name = binding_.BuiltinPluginName.DeterministicChunkIdsPlugin;
|
|
2169
2169
|
affectedHooks = "compilation";
|
|
2170
|
-
raw(
|
|
2170
|
+
raw() {
|
|
2171
2171
|
return (0, builtin_plugin_base.no)(this.name, void 0);
|
|
2172
2172
|
}
|
|
2173
2173
|
}
|
|
2174
2174
|
class DeterministicModuleIdsPlugin extends builtin_plugin_base.Xj {
|
|
2175
2175
|
name = binding_.BuiltinPluginName.DeterministicModuleIdsPlugin;
|
|
2176
2176
|
affectedHooks = "compilation";
|
|
2177
|
-
raw(
|
|
2177
|
+
raw() {
|
|
2178
2178
|
return (0, builtin_plugin_base.no)(this.name, void 0);
|
|
2179
2179
|
}
|
|
2180
2180
|
}
|
|
@@ -2304,7 +2304,22 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2304
2304
|
if (!enabled.has(type)) return enabled.add(type), (0, builtin_plugin_base.no)(this.name, type);
|
|
2305
2305
|
}
|
|
2306
2306
|
}
|
|
2307
|
-
let EnableWasmLoadingPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type), EnsureChunkConditionsPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{}),
|
|
2307
|
+
let EnableWasmLoadingPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type), EnsureChunkConditionsPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{}), RemoveDuplicateModulesPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
|
|
2308
|
+
class EsmLibraryPlugin {
|
|
2309
|
+
static PLUGIN_NAME = "EsmLibraryPlugin";
|
|
2310
|
+
apply(compiler) {
|
|
2311
|
+
var config;
|
|
2312
|
+
let err;
|
|
2313
|
+
new RemoveDuplicateModulesPlugin().apply(compiler);
|
|
2314
|
+
let { splitChunks } = compiler.options.optimization;
|
|
2315
|
+
if (splitChunks && (splitChunks.chunks = "all", splitChunks.minSize = 0), err = (config = compiler.options).optimization.concatenateModules ? "You should disable `config.optimization.concatenateModules`" : !1 !== config.output.chunkFormat ? "You should disable default chunkFormat by `config.output.chunkFormat = false`" : void 0) throw new src_0.WebpackError(`Conflicted config for ${EsmLibraryPlugin.PLUGIN_NAME}: ${err}`);
|
|
2316
|
+
compiler.__internal__registerBuiltinPlugin({
|
|
2317
|
+
name: binding_.BuiltinPluginName.EsmLibraryPlugin,
|
|
2318
|
+
options: {}
|
|
2319
|
+
});
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
let EvalDevToolModulePlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, "compilation"), EvalSourceMapDevToolPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, "compilation");
|
|
2308
2323
|
function isNil(value) {
|
|
2309
2324
|
return null == value;
|
|
2310
2325
|
}
|
|
@@ -2749,10 +2764,10 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2749
2764
|
}
|
|
2750
2765
|
}
|
|
2751
2766
|
class Hash {
|
|
2752
|
-
update(
|
|
2767
|
+
update() {
|
|
2753
2768
|
throw new AbstractMethodError();
|
|
2754
2769
|
}
|
|
2755
|
-
digest(
|
|
2770
|
+
digest() {
|
|
2756
2771
|
throw new AbstractMethodError();
|
|
2757
2772
|
}
|
|
2758
2773
|
}
|
|
@@ -2869,7 +2884,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
2869
2884
|
constructor(){
|
|
2870
2885
|
super(), this.string = "";
|
|
2871
2886
|
}
|
|
2872
|
-
update(data
|
|
2887
|
+
update(data) {
|
|
2873
2888
|
let normalizedData;
|
|
2874
2889
|
return (normalizedData = Buffer.isBuffer(data) ? data.toString("utf-8") : data).startsWith("debug-digest-") && (normalizedData = Buffer.from(normalizedData.slice(13), "hex").toString()), this.string += `[${normalizedData}](${Error().stack?.split("\n", 3)[2]})\n`, this;
|
|
2875
2890
|
}
|
|
@@ -3951,10 +3966,12 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
3951
3966
|
requireAsExpression: parser.requireAsExpression,
|
|
3952
3967
|
requireDynamic: parser.requireDynamic,
|
|
3953
3968
|
requireResolve: parser.requireResolve,
|
|
3969
|
+
commonjs: parser.commonjs,
|
|
3954
3970
|
importDynamic: parser.importDynamic,
|
|
3955
3971
|
commonjsMagicComments: parser.commonjsMagicComments,
|
|
3956
3972
|
inlineConst: parser.inlineConst,
|
|
3957
|
-
typeReexportsPresence: parser.typeReexportsPresence
|
|
3973
|
+
typeReexportsPresence: parser.typeReexportsPresence,
|
|
3974
|
+
jsx: parser.jsx
|
|
3958
3975
|
};
|
|
3959
3976
|
}
|
|
3960
3977
|
function getRawCssParserOptions(parser) {
|
|
@@ -4146,7 +4163,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
4146
4163
|
constructor(global){
|
|
4147
4164
|
super(), this.global = global;
|
|
4148
4165
|
}
|
|
4149
|
-
raw(
|
|
4166
|
+
raw() {
|
|
4150
4167
|
return (0, builtin_plugin_base.no)(this.name, this.global);
|
|
4151
4168
|
}
|
|
4152
4169
|
}
|
|
@@ -7378,7 +7395,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
7378
7395
|
constructor(deterministic){
|
|
7379
7396
|
super(), this.deterministic = deterministic;
|
|
7380
7397
|
}
|
|
7381
|
-
raw(
|
|
7398
|
+
raw() {
|
|
7382
7399
|
return (0, builtin_plugin_base.no)(this.name, this.deterministic);
|
|
7383
7400
|
}
|
|
7384
7401
|
}
|
|
@@ -7386,7 +7403,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
7386
7403
|
class ModuleConcatenationPlugin extends builtin_plugin_base.Xj {
|
|
7387
7404
|
name = binding_.BuiltinPluginName.ModuleConcatenationPlugin;
|
|
7388
7405
|
affectedHooks = "compilation";
|
|
7389
|
-
raw(
|
|
7406
|
+
raw() {
|
|
7390
7407
|
return (0, builtin_plugin_base.no)(this.name, void 0);
|
|
7391
7408
|
}
|
|
7392
7409
|
}
|
|
@@ -7394,14 +7411,14 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
7394
7411
|
class NaturalChunkIdsPlugin extends builtin_plugin_base.Xj {
|
|
7395
7412
|
name = binding_.BuiltinPluginName.NaturalChunkIdsPlugin;
|
|
7396
7413
|
affectedHooks = "compilation";
|
|
7397
|
-
raw(
|
|
7414
|
+
raw() {
|
|
7398
7415
|
return (0, builtin_plugin_base.no)(this.name, void 0);
|
|
7399
7416
|
}
|
|
7400
7417
|
}
|
|
7401
7418
|
class NaturalModuleIdsPlugin extends builtin_plugin_base.Xj {
|
|
7402
7419
|
name = binding_.BuiltinPluginName.NaturalModuleIdsPlugin;
|
|
7403
7420
|
affectedHooks = "compilation";
|
|
7404
|
-
raw(
|
|
7421
|
+
raw() {
|
|
7405
7422
|
return (0, builtin_plugin_base.no)(this.name, void 0);
|
|
7406
7423
|
}
|
|
7407
7424
|
}
|
|
@@ -7419,7 +7436,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
7419
7436
|
]), [
|
|
7420
7437
|
key,
|
|
7421
7438
|
value
|
|
7422
|
-
]))), "compilation"), RealContentHashPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.RealContentHashPlugin, ()=>{}, "compilation"),
|
|
7439
|
+
]))), "compilation"), RealContentHashPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.RealContentHashPlugin, ()=>{}, "compilation"), RemoveEmptyChunksPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.RemoveEmptyChunksPlugin, ()=>{}, "compilation"), RsdoctorPluginImpl = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.RsdoctorPlugin, function(c = {
|
|
7423
7440
|
moduleGraphFeatures: !0,
|
|
7424
7441
|
chunkGraphFeatures: !0
|
|
7425
7442
|
}) {
|
|
@@ -7719,7 +7736,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
7719
7736
|
module: options?.minimizerOptions?.module
|
|
7720
7737
|
}
|
|
7721
7738
|
};
|
|
7722
|
-
}, "compilation"), WarnCaseSensitiveModulesPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.WarnCaseSensitiveModulesPlugin, ()=>{}, "compilation");
|
|
7739
|
+
}, "compilation"), URLPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.URLPlugin, ()=>{}, "compilation"), WarnCaseSensitiveModulesPlugin = (0, builtin_plugin_base.vt)(binding_.BuiltinPluginName.WarnCaseSensitiveModulesPlugin, ()=>{}, "compilation");
|
|
7723
7740
|
class WebWorkerTemplatePlugin extends builtin_plugin_base.Xj {
|
|
7724
7741
|
name = binding_.BuiltinPluginName.WebWorkerTemplatePlugin;
|
|
7725
7742
|
raw(compiler) {
|
|
@@ -8606,7 +8623,6 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
8606
8623
|
"./src"
|
|
8607
8624
|
]);
|
|
8608
8625
|
defaults_F(options, "devtool", ()=>!!development && "eval"), D(options, "watch", !1), D(options, "profile", !1), D(options, "lazyCompilation", !1), D(options, "bail", !1), defaults_F(options, "cache", ()=>development), !1 === options.cache && (options.experiments.cache = !1), applyExperimentsDefaults(options.experiments, {
|
|
8609
|
-
production,
|
|
8610
8626
|
development
|
|
8611
8627
|
}), applyOptimizationDefaults(options.optimization, {
|
|
8612
8628
|
production,
|
|
@@ -8651,15 +8667,15 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
8651
8667
|
defaults_F(infrastructureLogging, "stream", ()=>process.stderr);
|
|
8652
8668
|
let tty = infrastructureLogging.stream?.isTTY && "dumb" !== process.env.TERM;
|
|
8653
8669
|
D(infrastructureLogging, "level", "info"), D(infrastructureLogging, "debug", !1), D(infrastructureLogging, "colors", tty), D(infrastructureLogging, "appendOnly", !tty);
|
|
8654
|
-
}, applyExperimentsDefaults = (experiments, {
|
|
8670
|
+
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
8655
8671
|
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);
|
|
8656
8672
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
8657
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.
|
|
8673
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.8"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
8658
8674
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst })=>{
|
|
8659
8675
|
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 })=>{
|
|
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", [
|
|
8676
|
+
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, "commonjs", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
|
|
8661
8677
|
"..."
|
|
8662
|
-
]), D(parserOptions, "importMeta", !0), D(parserOptions, "inlineConst", usedExports && inlineConst), D(parserOptions, "typeReexportsPresence", "no-tolerant");
|
|
8678
|
+
]), D(parserOptions, "importMeta", !0), D(parserOptions, "inlineConst", usedExports && inlineConst), D(parserOptions, "typeReexportsPresence", "no-tolerant"), D(parserOptions, "jsx", !1);
|
|
8663
8679
|
})(module.parser.javascript, {
|
|
8664
8680
|
usedExports,
|
|
8665
8681
|
inlineConst
|
|
@@ -9402,7 +9418,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
9402
9418
|
}
|
|
9403
9419
|
let printGeneratedCodeForStack = (moduleId, code)=>{
|
|
9404
9420
|
let lines = code.split("\n"), n = `${lines.length}`.length;
|
|
9405
|
-
return `\n\nGenerated code for ${moduleId}\n${lines.map((line, i
|
|
9421
|
+
return `\n\nGenerated code for ${moduleId}\n${lines.map((line, i)=>{
|
|
9406
9422
|
let iStr = `${i + 1}`;
|
|
9407
9423
|
return `${" ".repeat(n - iStr.length)}${iStr} | ${line}`;
|
|
9408
9424
|
}).join("\n")}`;
|
|
@@ -10298,7 +10314,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
10298
10314
|
});
|
|
10299
10315
|
}
|
|
10300
10316
|
}
|
|
10301
|
-
let CORE_VERSION = "1.5.
|
|
10317
|
+
let CORE_VERSION = "1.5.8", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
10302
10318
|
|
|
10303
10319
|
Help:
|
|
10304
10320
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -11311,7 +11327,7 @@ Help:
|
|
|
11311
11327
|
};
|
|
11312
11328
|
})
|
|
11313
11329
|
}),
|
|
11314
|
-
...((getCompiler, createTap
|
|
11330
|
+
...((getCompiler, createTap)=>{
|
|
11315
11331
|
let getOptions = (uid)=>((compilation, uid)=>{
|
|
11316
11332
|
if (!(compilation instanceof Compilation)) throw TypeError("The 'compilation' argument must be an instance of Compilation");
|
|
11317
11333
|
return compilationOptionsMap.get(compilation)?.[uid];
|
|
@@ -11396,7 +11412,7 @@ Help:
|
|
|
11396
11412
|
};
|
|
11397
11413
|
})
|
|
11398
11414
|
};
|
|
11399
|
-
})(getCompiler7, createTap6,
|
|
11415
|
+
})(getCompiler7, createTap6, createMapTap2),
|
|
11400
11416
|
...(getCompiler5 = getCompiler7, {
|
|
11401
11417
|
registerRuntimePluginCreateScriptTaps: (createTap4 = createTap6)(binding_default().RegisterJsTapKind.RuntimePluginCreateScript, function() {
|
|
11402
11418
|
return RuntimePlugin.getCompilationHooks(getCompiler5().__internal__get_compilation()).createScript;
|
|
@@ -11582,7 +11598,7 @@ Help:
|
|
|
11582
11598
|
obj.children = this.stats.map((stat, idx)=>{
|
|
11583
11599
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
11584
11600
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
11585
|
-
}), childOptions.version && (obj.rspackVersion = "1.5.
|
|
11601
|
+
}), childOptions.version && (obj.rspackVersion = "1.5.8", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
11586
11602
|
let mapError = (j, obj)=>({
|
|
11587
11603
|
...obj,
|
|
11588
11604
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -12407,6 +12423,7 @@ Help:
|
|
|
12407
12423
|
LogType.warn,
|
|
12408
12424
|
LogType.info,
|
|
12409
12425
|
LogType.log,
|
|
12426
|
+
LogType.debug,
|
|
12410
12427
|
LogType.group,
|
|
12411
12428
|
LogType.groupEnd,
|
|
12412
12429
|
LogType.groupCollapsed,
|
|
@@ -12478,7 +12495,7 @@ Help:
|
|
|
12478
12495
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
12479
12496
|
},
|
|
12480
12497
|
version: (object)=>{
|
|
12481
|
-
object.version = "5.75.0", object.rspackVersion = "1.5.
|
|
12498
|
+
object.version = "5.75.0", object.rspackVersion = "1.5.8";
|
|
12482
12499
|
},
|
|
12483
12500
|
env: (object, _compilation, _context, { _env })=>{
|
|
12484
12501
|
object.env = _env;
|
|
@@ -12540,7 +12557,7 @@ Help:
|
|
|
12540
12557
|
return chunk && 1 === chunk.files.size && (!chunkGroupAuxiliary || 0 === chunk.auxiliaryFiles.size);
|
|
12541
12558
|
})) || (object.entrypoints = factory.create(`${type}.entrypoints`, array, context));
|
|
12542
12559
|
},
|
|
12543
|
-
chunkGroups: (object, compilation, context,
|
|
12560
|
+
chunkGroups: (object, compilation, context, _, factory)=>{
|
|
12544
12561
|
let { type, getStatsCompilation } = context, namedChunkGroups = getStatsCompilation(compilation).namedChunkGroups.map((cg)=>({
|
|
12545
12562
|
name: cg.name,
|
|
12546
12563
|
chunkGroup: cg
|
|
@@ -12733,7 +12750,7 @@ Help:
|
|
|
12733
12750
|
error: EXTRACT_ERROR,
|
|
12734
12751
|
warning: EXTRACT_ERROR,
|
|
12735
12752
|
moduleTraceItem: {
|
|
12736
|
-
_: (object, { origin, module, dependencies }, context,
|
|
12753
|
+
_: (object, { origin, module, dependencies }, context, _, factory)=>{
|
|
12737
12754
|
let { type } = context;
|
|
12738
12755
|
origin.moduleDescriptor && (object.originIdentifier = origin.moduleDescriptor.identifier, object.originName = origin.moduleDescriptor.name), module.moduleDescriptor && (object.moduleIdentifier = module.moduleDescriptor.identifier, object.moduleName = module.moduleDescriptor.name), object.dependencies = factory.create(`${type}.dependencies`, dependencies, context);
|
|
12739
12756
|
},
|
|
@@ -12899,7 +12916,7 @@ Help:
|
|
|
12899
12916
|
chunkGroups: OFF_FOR_TO_STRING,
|
|
12900
12917
|
chunkGroupAuxiliary: OFF_FOR_TO_STRING,
|
|
12901
12918
|
chunkGroupChildren: OFF_FOR_TO_STRING,
|
|
12902
|
-
chunkGroupMaxAssets: (
|
|
12919
|
+
chunkGroupMaxAssets: (_, { forToString })=>forToString ? 5 : 1 / 0,
|
|
12903
12920
|
chunks: OFF_FOR_TO_STRING,
|
|
12904
12921
|
chunkRelations: OFF_FOR_TO_STRING,
|
|
12905
12922
|
chunkModules: ({ all, modules })=>!1 !== all && (!0 === all || !modules),
|
|
@@ -12914,16 +12931,16 @@ Help:
|
|
|
12914
12931
|
groupModulesByAttributes: ON_FOR_TO_STRING,
|
|
12915
12932
|
groupModulesByPath: ON_FOR_TO_STRING,
|
|
12916
12933
|
groupModulesByExtension: ON_FOR_TO_STRING,
|
|
12917
|
-
modulesSpace: (
|
|
12918
|
-
chunkModulesSpace: (
|
|
12919
|
-
nestedModulesSpace: (
|
|
12934
|
+
modulesSpace: (_, { forToString })=>forToString ? 15 : 1 / 0,
|
|
12935
|
+
chunkModulesSpace: (_, { forToString })=>forToString ? 10 : 1 / 0,
|
|
12936
|
+
nestedModulesSpace: (_, { forToString })=>forToString ? 10 : 1 / 0,
|
|
12920
12937
|
relatedAssets: OFF_FOR_TO_STRING,
|
|
12921
12938
|
groupAssetsByEmitStatus: ON_FOR_TO_STRING,
|
|
12922
12939
|
groupAssetsByInfo: ON_FOR_TO_STRING,
|
|
12923
12940
|
groupAssetsByPath: ON_FOR_TO_STRING,
|
|
12924
12941
|
groupAssetsByExtension: ON_FOR_TO_STRING,
|
|
12925
12942
|
groupAssetsByChunk: ON_FOR_TO_STRING,
|
|
12926
|
-
assetsSpace: (
|
|
12943
|
+
assetsSpace: (_, { forToString })=>forToString ? 15 : 1 / 0,
|
|
12927
12944
|
orphanModules: OFF_FOR_TO_STRING,
|
|
12928
12945
|
runtimeModules: ({ all, runtime }, { forToString })=>void 0 !== runtime ? runtime : forToString ? !0 === all : !1 !== all,
|
|
12929
12946
|
cachedModules: ({ all, cached }, { forToString })=>void 0 !== cached ? cached : forToString ? !0 === all : !1 !== all,
|
|
@@ -12931,7 +12948,7 @@ Help:
|
|
|
12931
12948
|
depth: OFF_FOR_TO_STRING,
|
|
12932
12949
|
cachedAssets: OFF_FOR_TO_STRING,
|
|
12933
12950
|
reasons: OFF_FOR_TO_STRING,
|
|
12934
|
-
reasonsSpace: (
|
|
12951
|
+
reasonsSpace: (_, { forToString })=>forToString ? 15 : 1 / 0,
|
|
12935
12952
|
groupReasonsByOrigin: ON_FOR_TO_STRING,
|
|
12936
12953
|
usedExports: OFF_FOR_TO_STRING,
|
|
12937
12954
|
providedExports: OFF_FOR_TO_STRING,
|
|
@@ -12993,7 +13010,7 @@ Help:
|
|
|
12993
13010
|
compiler.hooks.compilation.tap("DefaultStatsPresetPlugin", (compilation)=>{
|
|
12994
13011
|
for (let key of Object.keys(NAMED_PRESETS)){
|
|
12995
13012
|
let defaults = NAMED_PRESETS[key];
|
|
12996
|
-
compilation.hooks.statsPreset.for(key).tap("DefaultStatsPresetPlugin", (options
|
|
13013
|
+
compilation.hooks.statsPreset.for(key).tap("DefaultStatsPresetPlugin", (options)=>{
|
|
12997
13014
|
applyDefaults(options, defaults);
|
|
12998
13015
|
});
|
|
12999
13016
|
}
|
|
@@ -13055,7 +13072,7 @@ Help:
|
|
|
13055
13072
|
},
|
|
13056
13073
|
"asset.type": (type)=>type,
|
|
13057
13074
|
"asset.name": (name, { formatFilename, asset: { isOverSizeLimit } })=>formatFilename(name, isOverSizeLimit),
|
|
13058
|
-
"asset.size": (size, { asset: { isOverSizeLimit }, yellow,
|
|
13075
|
+
"asset.size": (size, { asset: { isOverSizeLimit }, yellow, formatSize })=>isOverSizeLimit ? yellow(formatSize(size)) : formatSize(size),
|
|
13059
13076
|
"asset.emitted": (emitted, { green, formatFlag })=>emitted ? green(formatFlag("emitted")) : void 0,
|
|
13060
13077
|
"asset.comparedForEmit": (comparedForEmit, { yellow, formatFlag })=>comparedForEmit ? yellow(formatFlag("compared for emit")) : void 0,
|
|
13061
13078
|
"asset.cached": (cached, { green, formatFlag })=>cached ? green(formatFlag("cached")) : void 0,
|
|
@@ -13831,7 +13848,7 @@ Help:
|
|
|
13831
13848
|
moduleFilenameTemplate: options.output.devtoolModuleFilenameTemplate,
|
|
13832
13849
|
namespace: options.output.devtoolNamespace
|
|
13833
13850
|
}).apply(compiler);
|
|
13834
|
-
if (new JavascriptModulesPlugin().apply(compiler), new JsonModulesPlugin().apply(compiler), new AssetModulesPlugin().apply(compiler), options.experiments.asyncWebAssembly && new AsyncWebAssemblyModulesPlugin().apply(compiler), options.experiments.css && new CssModulesPlugin().apply(compiler), new lib_EntryOptionPlugin().apply(compiler), assertNotNill(options.context), compiler.hooks.entryOption.call(options.context, options.entry), new RuntimePlugin().apply(compiler), options.experiments.rspackFuture.bundlerInfo && new BundlerInfoRspackPlugin(options.experiments.rspackFuture.bundlerInfo).apply(compiler), new InferAsyncModulesPlugin().apply(compiler), new APIPlugin().apply(compiler), new DataUriPlugin().apply(compiler), new FileUriPlugin().apply(compiler), options.experiments.buildHttp && new HttpUriPlugin(options.experiments.buildHttp).apply(compiler), new EnsureChunkConditionsPlugin().apply(compiler), options.optimization.mergeDuplicateChunks && new MergeDuplicateChunksPlugin().apply(compiler), options.optimization.sideEffects && new SideEffectsFlagPlugin().apply(compiler), options.optimization.providedExports && new FlagDependencyExportsPlugin().apply(compiler), options.optimization.usedExports && new FlagDependencyUsagePlugin("global" === options.optimization.usedExports).apply(compiler), options.optimization.concatenateModules && new ModuleConcatenationPlugin().apply(compiler), options.optimization.mangleExports && new MangleExportsPlugin("size" !== options.optimization.mangleExports).apply(compiler), options.output.enabledLibraryTypes && options.output.enabledLibraryTypes.length > 0) for (let type of options.output.enabledLibraryTypes)new EnableLibraryPlugin(type).apply(compiler);
|
|
13851
|
+
if (new JavascriptModulesPlugin().apply(compiler), new URLPlugin().apply(compiler), new JsonModulesPlugin().apply(compiler), new AssetModulesPlugin().apply(compiler), options.experiments.asyncWebAssembly && new AsyncWebAssemblyModulesPlugin().apply(compiler), options.experiments.css && new CssModulesPlugin().apply(compiler), new lib_EntryOptionPlugin().apply(compiler), assertNotNill(options.context), compiler.hooks.entryOption.call(options.context, options.entry), new RuntimePlugin().apply(compiler), options.experiments.rspackFuture.bundlerInfo && new BundlerInfoRspackPlugin(options.experiments.rspackFuture.bundlerInfo).apply(compiler), new InferAsyncModulesPlugin().apply(compiler), new APIPlugin().apply(compiler), new DataUriPlugin().apply(compiler), new FileUriPlugin().apply(compiler), options.experiments.buildHttp && new HttpUriPlugin(options.experiments.buildHttp).apply(compiler), new EnsureChunkConditionsPlugin().apply(compiler), options.optimization.mergeDuplicateChunks && new MergeDuplicateChunksPlugin().apply(compiler), options.optimization.sideEffects && new SideEffectsFlagPlugin().apply(compiler), options.optimization.providedExports && new FlagDependencyExportsPlugin().apply(compiler), options.optimization.usedExports && new FlagDependencyUsagePlugin("global" === options.optimization.usedExports).apply(compiler), options.optimization.concatenateModules && new ModuleConcatenationPlugin().apply(compiler), options.optimization.mangleExports && new MangleExportsPlugin("size" !== options.optimization.mangleExports).apply(compiler), options.output.enabledLibraryTypes && options.output.enabledLibraryTypes.length > 0) for (let type of options.output.enabledLibraryTypes)new EnableLibraryPlugin(type).apply(compiler);
|
|
13835
13852
|
options.optimization.splitChunks && new SplitChunksPlugin(options.optimization.splitChunks).apply(compiler), options.optimization.removeEmptyChunks && new RemoveEmptyChunksPlugin().apply(compiler), options.optimization.realContentHash && new RealContentHashPlugin().apply(compiler);
|
|
13836
13853
|
let moduleIds = options.optimization.moduleIds;
|
|
13837
13854
|
if (moduleIds) switch(moduleIds){
|
|
@@ -14527,7 +14544,8 @@ Help:
|
|
|
14527
14544
|
}).partial()),
|
|
14528
14545
|
runtime: schemas_enum([
|
|
14529
14546
|
"automatic",
|
|
14530
|
-
"classic"
|
|
14547
|
+
"classic",
|
|
14548
|
+
"preserve"
|
|
14531
14549
|
]),
|
|
14532
14550
|
importSource: schemas_string()
|
|
14533
14551
|
}).partial(), ZodSwcConstModulesConfig = strictObject({
|
|
@@ -14995,6 +15013,7 @@ Help:
|
|
|
14995
15013
|
"auto"
|
|
14996
15014
|
]), javascriptParserUrl = union([
|
|
14997
15015
|
literal("relative"),
|
|
15016
|
+
literal("new-url-relative"),
|
|
14998
15017
|
schemas_boolean()
|
|
14999
15018
|
]), exprContextCritical = schemas_boolean(), wrappedContextCritical = schemas_boolean(), unknownContextCritical = schemas_boolean(), wrappedContextRegExp = _instanceof(RegExp), exportsPresence = schemas_enum([
|
|
15000
15019
|
"error",
|
|
@@ -15011,11 +15030,16 @@ Help:
|
|
|
15011
15030
|
]).or(literal(!1)), strictExportPresence = schemas_boolean(), worker = schemas_array(schemas_string()).or(schemas_boolean()), overrideStrict = schemas_enum([
|
|
15012
15031
|
"strict",
|
|
15013
15032
|
"non-strict"
|
|
15014
|
-
]), requireAsExpression = schemas_boolean(), requireDynamic = schemas_boolean(), requireResolve = schemas_boolean(),
|
|
15033
|
+
]), requireAsExpression = schemas_boolean(), requireDynamic = schemas_boolean(), requireResolve = schemas_boolean(), commonjsExports = union([
|
|
15034
|
+
schemas_boolean(),
|
|
15035
|
+
literal("skipInEsm")
|
|
15036
|
+
]), commonjs = schemas_boolean().or(strictObject({
|
|
15037
|
+
exports: commonjsExports
|
|
15038
|
+
}).partial()), importDynamic = schemas_boolean(), commonjsMagicComments = schemas_boolean(), inlineConst = schemas_boolean(), typeReexportsPresence = schemas_enum([
|
|
15015
15039
|
"no-tolerant",
|
|
15016
15040
|
"tolerant",
|
|
15017
15041
|
"tolerant-no-check"
|
|
15018
|
-
]), javascriptParserOptions = strictObject({
|
|
15042
|
+
]), jsx = schemas_boolean(), javascriptParserOptions = strictObject({
|
|
15019
15043
|
dynamicImportMode: dynamicImportMode,
|
|
15020
15044
|
dynamicImportPreload: dynamicImportPreload,
|
|
15021
15045
|
dynamicImportPrefetch: dynamicImportPrefetch,
|
|
@@ -15036,9 +15060,11 @@ Help:
|
|
|
15036
15060
|
requireAsExpression: requireAsExpression,
|
|
15037
15061
|
requireDynamic: requireDynamic,
|
|
15038
15062
|
requireResolve: requireResolve,
|
|
15063
|
+
commonjs: commonjs,
|
|
15039
15064
|
importDynamic: importDynamic,
|
|
15040
15065
|
inlineConst: inlineConst,
|
|
15041
|
-
typeReexportsPresence: typeReexportsPresence
|
|
15066
|
+
typeReexportsPresence: typeReexportsPresence,
|
|
15067
|
+
jsx: jsx
|
|
15042
15068
|
}).partial(), parserOptionsByModuleTypeKnown = strictObject({
|
|
15043
15069
|
asset: assetParserOptions,
|
|
15044
15070
|
css: cssParserOptions,
|
|
@@ -15794,7 +15820,7 @@ Help:
|
|
|
15794
15820
|
let _options = JSON.stringify(options || {});
|
|
15795
15821
|
return binding_default().transform(source, _options);
|
|
15796
15822
|
}
|
|
15797
|
-
let exports_rspackVersion = "1.5.
|
|
15823
|
+
let exports_rspackVersion = "1.5.8", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
15798
15824
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
15799
15825
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
15800
15826
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
|
@@ -15985,6 +16011,7 @@ Help:
|
|
|
15985
16011
|
}
|
|
15986
16012
|
},
|
|
15987
16013
|
RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin,
|
|
16014
|
+
EsmLibraryPlugin: EsmLibraryPlugin,
|
|
15988
16015
|
RsdoctorPlugin: RsdoctorPluginImpl,
|
|
15989
16016
|
RstestPlugin: RstestPlugin,
|
|
15990
16017
|
RslibPlugin: RslibPlugin,
|
package/dist/schema/config.d.ts
CHANGED
|
@@ -736,7 +736,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
736
736
|
high: "high";
|
|
737
737
|
}>>;
|
|
738
738
|
importMeta: z.ZodOptional<z.ZodBoolean>;
|
|
739
|
-
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
739
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodLiteral<"new-url-relative">, z.ZodBoolean]>>;
|
|
740
740
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
741
741
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
742
742
|
unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -766,6 +766,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
766
766
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
767
767
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
768
768
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
769
|
+
commonjs: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
770
|
+
exports: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skipInEsm">]>>;
|
|
771
|
+
}, z.core.$strict>]>>;
|
|
769
772
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
770
773
|
inlineConst: z.ZodOptional<z.ZodBoolean>;
|
|
771
774
|
typeReexportsPresence: z.ZodOptional<z.ZodEnum<{
|
|
@@ -773,6 +776,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
773
776
|
tolerant: "tolerant";
|
|
774
777
|
"tolerant-no-check": "tolerant-no-check";
|
|
775
778
|
}>>;
|
|
779
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
776
780
|
}, z.core.$strict>>;
|
|
777
781
|
"javascript/auto": z.ZodOptional<z.ZodObject<{
|
|
778
782
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -789,7 +793,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
789
793
|
high: "high";
|
|
790
794
|
}>>;
|
|
791
795
|
importMeta: z.ZodOptional<z.ZodBoolean>;
|
|
792
|
-
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
796
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodLiteral<"new-url-relative">, z.ZodBoolean]>>;
|
|
793
797
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
794
798
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
795
799
|
unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -819,6 +823,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
819
823
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
820
824
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
821
825
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
826
|
+
commonjs: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
827
|
+
exports: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skipInEsm">]>>;
|
|
828
|
+
}, z.core.$strict>]>>;
|
|
822
829
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
823
830
|
inlineConst: z.ZodOptional<z.ZodBoolean>;
|
|
824
831
|
typeReexportsPresence: z.ZodOptional<z.ZodEnum<{
|
|
@@ -826,6 +833,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
826
833
|
tolerant: "tolerant";
|
|
827
834
|
"tolerant-no-check": "tolerant-no-check";
|
|
828
835
|
}>>;
|
|
836
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
829
837
|
}, z.core.$strict>>;
|
|
830
838
|
"javascript/dynamic": z.ZodOptional<z.ZodObject<{
|
|
831
839
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -842,7 +850,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
842
850
|
high: "high";
|
|
843
851
|
}>>;
|
|
844
852
|
importMeta: z.ZodOptional<z.ZodBoolean>;
|
|
845
|
-
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
853
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodLiteral<"new-url-relative">, z.ZodBoolean]>>;
|
|
846
854
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
847
855
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
848
856
|
unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -872,6 +880,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
872
880
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
873
881
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
874
882
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
883
|
+
commonjs: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
884
|
+
exports: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skipInEsm">]>>;
|
|
885
|
+
}, z.core.$strict>]>>;
|
|
875
886
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
876
887
|
inlineConst: z.ZodOptional<z.ZodBoolean>;
|
|
877
888
|
typeReexportsPresence: z.ZodOptional<z.ZodEnum<{
|
|
@@ -879,6 +890,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
879
890
|
tolerant: "tolerant";
|
|
880
891
|
"tolerant-no-check": "tolerant-no-check";
|
|
881
892
|
}>>;
|
|
893
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
882
894
|
}, z.core.$strict>>;
|
|
883
895
|
"javascript/esm": z.ZodOptional<z.ZodObject<{
|
|
884
896
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -895,7 +907,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
895
907
|
high: "high";
|
|
896
908
|
}>>;
|
|
897
909
|
importMeta: z.ZodOptional<z.ZodBoolean>;
|
|
898
|
-
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
|
910
|
+
url: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"relative">, z.ZodLiteral<"new-url-relative">, z.ZodBoolean]>>;
|
|
899
911
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
900
912
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
901
913
|
unknownContextCritical: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -925,6 +937,9 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
925
937
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
926
938
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
927
939
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
940
|
+
commonjs: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
941
|
+
exports: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"skipInEsm">]>>;
|
|
942
|
+
}, z.core.$strict>]>>;
|
|
928
943
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
929
944
|
inlineConst: z.ZodOptional<z.ZodBoolean>;
|
|
930
945
|
typeReexportsPresence: z.ZodOptional<z.ZodEnum<{
|
|
@@ -932,6 +947,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
932
947
|
tolerant: "tolerant";
|
|
933
948
|
"tolerant-no-check": "tolerant-no-check";
|
|
934
949
|
}>>;
|
|
950
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
935
951
|
}, z.core.$strict>>;
|
|
936
952
|
}, z.core.$strict>>;
|
|
937
953
|
generator: z.ZodOptional<z.ZodObject<{
|
package/dist/schema/loaders.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export declare const getZodSwcLoaderOptionsSchema: () => z.ZodObject<{
|
|
|
90
90
|
emitFullSignatures: z.ZodOptional<z.ZodBoolean>;
|
|
91
91
|
}, z.core.$strict>]>>;
|
|
92
92
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
preserve: "preserve";
|
|
93
94
|
automatic: "automatic";
|
|
94
95
|
classic: "classic";
|
|
95
96
|
}>>;
|
package/dist/worker.js
CHANGED
|
@@ -242,10 +242,10 @@ var __webpack_modules__ = {
|
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
class Hash {
|
|
245
|
-
update(
|
|
245
|
+
update() {
|
|
246
246
|
throw new AbstractMethodError();
|
|
247
247
|
}
|
|
248
|
-
digest(
|
|
248
|
+
digest() {
|
|
249
249
|
throw new AbstractMethodError();
|
|
250
250
|
}
|
|
251
251
|
}
|
|
@@ -362,7 +362,7 @@ var __webpack_modules__ = {
|
|
|
362
362
|
constructor(){
|
|
363
363
|
super(), this.string = "";
|
|
364
364
|
}
|
|
365
|
-
update(data
|
|
365
|
+
update(data) {
|
|
366
366
|
let normalizedData;
|
|
367
367
|
return (normalizedData = Buffer.isBuffer(data) ? data.toString("utf-8") : data).startsWith("debug-digest-") && (normalizedData = Buffer.from(normalizedData.slice(13), "hex").toString()), this.string += `[${normalizedData}](${Error().stack?.split("\n", 3)[2]})\n`, this;
|
|
368
368
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.8",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"enhanced-resolve": "5.18.3",
|
|
48
48
|
"glob-to-regexp": "^0.4.1",
|
|
49
49
|
"graceful-fs": "^4.2.11",
|
|
50
|
-
"memfs": "4.
|
|
50
|
+
"memfs": "4.46.0",
|
|
51
51
|
"prebundle": "^1.4.2",
|
|
52
52
|
"tinypool": "^1.1.1",
|
|
53
53
|
"tsx": "^4.20.5",
|
|
@@ -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": "1.5.
|
|
63
|
+
"@rspack/binding": "1.5.8"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@swc/helpers": ">=0.5.1"
|