@rspack/core 1.7.9 → 1.7.11
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/index.js +26 -12
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4894,23 +4894,37 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
4894
4894
|
extractComments: function(extractComments) {
|
|
4895
4895
|
var value;
|
|
4896
4896
|
let type, conditionStr = (condition)=>{
|
|
4897
|
-
if (void 0 === condition || !0 === condition) return
|
|
4897
|
+
if (void 0 === condition || !0 === condition) return {
|
|
4898
|
+
source: '@preserve|@lic|@cc_on|^\\**!',
|
|
4899
|
+
flags: ''
|
|
4900
|
+
};
|
|
4898
4901
|
if (!1 === condition) throw Error('unreachable');
|
|
4899
|
-
return
|
|
4902
|
+
return {
|
|
4903
|
+
source: condition.source,
|
|
4904
|
+
flags: condition.flags
|
|
4905
|
+
};
|
|
4900
4906
|
};
|
|
4901
4907
|
if ('boolean' == typeof extractComments) {
|
|
4902
4908
|
if (!extractComments) return;
|
|
4909
|
+
let { source, flags } = conditionStr(extractComments);
|
|
4903
4910
|
return {
|
|
4904
|
-
condition:
|
|
4911
|
+
condition: source,
|
|
4912
|
+
conditionFlags: flags
|
|
4913
|
+
};
|
|
4914
|
+
}
|
|
4915
|
+
if (extractComments instanceof RegExp) {
|
|
4916
|
+
let { source, flags } = conditionStr(extractComments);
|
|
4917
|
+
return {
|
|
4918
|
+
condition: source,
|
|
4919
|
+
conditionFlags: flags
|
|
4905
4920
|
};
|
|
4906
4921
|
}
|
|
4907
|
-
if (extractComments instanceof RegExp) return {
|
|
4908
|
-
condition: extractComments.source
|
|
4909
|
-
};
|
|
4910
4922
|
if (type = typeof (value = extractComments), null != value && ('object' === type || 'function' === type)) {
|
|
4911
4923
|
if (!1 === extractComments.condition) return;
|
|
4924
|
+
let { source, flags } = conditionStr(extractComments.condition);
|
|
4912
4925
|
return {
|
|
4913
|
-
condition:
|
|
4926
|
+
condition: source,
|
|
4927
|
+
conditionFlags: flags,
|
|
4914
4928
|
banner: extractComments.banner
|
|
4915
4929
|
};
|
|
4916
4930
|
}
|
|
@@ -5908,7 +5922,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5908
5922
|
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
5909
5923
|
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, 'topLevelAwait', !0), D(experiments, 'deferImport', !1), 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, 'parallelLoader', !1), D(experiments, 'useInputFileSystem', !1), D(experiments, 'inlineConst', !0), D(experiments, 'inlineEnum', !1), D(experiments, 'typeReexportsPresence', !1), D(experiments, 'lazyBarrel', !0);
|
|
5910
5924
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
5911
|
-
'object' == typeof rspackFuture && (D(rspackFuture, 'bundlerInfo', {}), 'object' == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, 'version', "1.7.
|
|
5925
|
+
'object' == typeof rspackFuture && (D(rspackFuture, 'bundlerInfo', {}), 'object' == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, 'version', "1.7.11"), D(rspackFuture.bundlerInfo, 'bundler', 'rspack'), D(rspackFuture.bundlerInfo, 'force', !library)));
|
|
5912
5926
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyCssGeneratorOptionsDefaults = (generatorOptions, { targetProperties })=>{
|
|
5913
5927
|
D(generatorOptions, 'exportsOnly', !targetProperties || !1 === targetProperties.document), D(generatorOptions, 'esModule', !0);
|
|
5914
5928
|
}, applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, deferImport })=>{
|
|
@@ -7476,7 +7490,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7476
7490
|
obj.children = this.stats.map((stat, idx)=>{
|
|
7477
7491
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
7478
7492
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
7479
|
-
}), childOptions.version && (obj.rspackVersion = "1.7.
|
|
7493
|
+
}), childOptions.version && (obj.rspackVersion = "1.7.11", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(''));
|
|
7480
7494
|
let mapError = (j, obj)=>({
|
|
7481
7495
|
...obj,
|
|
7482
7496
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -8738,7 +8752,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
8738
8752
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
8739
8753
|
},
|
|
8740
8754
|
version: (object)=>{
|
|
8741
|
-
object.version = "5.75.0", object.rspackVersion = "1.7.
|
|
8755
|
+
object.version = "5.75.0", object.rspackVersion = "1.7.11";
|
|
8742
8756
|
},
|
|
8743
8757
|
env: (object, _compilation, _context, { _env })=>{
|
|
8744
8758
|
object.env = _env;
|
|
@@ -10463,7 +10477,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
10463
10477
|
});
|
|
10464
10478
|
}
|
|
10465
10479
|
}
|
|
10466
|
-
let CORE_VERSION = "1.7.
|
|
10480
|
+
let CORE_VERSION = "1.7.11", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
10467
10481
|
|
|
10468
10482
|
Help:
|
|
10469
10483
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -12291,7 +12305,7 @@ Help:
|
|
|
12291
12305
|
let _options = JSON.stringify(options || {});
|
|
12292
12306
|
return binding_default().transform(source, _options);
|
|
12293
12307
|
}
|
|
12294
|
-
let exports_rspackVersion = "1.7.
|
|
12308
|
+
let exports_rspackVersion = "1.7.11", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
12295
12309
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
12296
12310
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
12297
12311
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.11",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@module-federation/runtime-tools": "0.22.0",
|
|
60
60
|
"@rspack/lite-tapable": "1.1.0",
|
|
61
|
-
"@rspack/binding": "1.7.
|
|
61
|
+
"@rspack/binding": "1.7.11"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@swc/helpers": ">=0.5.1"
|