@rspack-canary/core 1.6.5-canary-5c09e49d-20251121173820 → 1.6.5-canary-e23badc4-20251124174040
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 +21 -9
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4645,7 +4645,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
4645
4645
|
return createBuiltinPlugin(this.name, rawOptions);
|
|
4646
4646
|
}
|
|
4647
4647
|
}
|
|
4648
|
-
let SubresourceIntegrityPlugin_PLUGIN_NAME = "SubresourceIntegrityPlugin", NATIVE_HTML_PLUGIN = "HtmlRspackPlugin", NativeSubresourceIntegrityPlugin = base_create(binding_.BuiltinPluginName.SubresourceIntegrityPlugin, function(options) {
|
|
4648
|
+
let SubresourceIntegrityPlugin_PLUGIN_NAME = "SubresourceIntegrityPlugin", NATIVE_HTML_PLUGIN = "HtmlRspackPlugin", HTTP_PROTOCOL_REGEX = /^https?:/, NativeSubresourceIntegrityPlugin = base_create(binding_.BuiltinPluginName.SubresourceIntegrityPlugin, function(options) {
|
|
4649
4649
|
let htmlPlugin = "Disabled";
|
|
4650
4650
|
return options.htmlPlugin === NATIVE_HTML_PLUGIN ? htmlPlugin = "Native" : "string" == typeof options.htmlPlugin && (htmlPlugin = "JavaScript"), {
|
|
4651
4651
|
hashFuncNames: options.hashFuncNames,
|
|
@@ -4706,11 +4706,23 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
4706
4706
|
}
|
|
4707
4707
|
}(tag);
|
|
4708
4708
|
if (!tagSrc) return;
|
|
4709
|
+
let isUrlSrc = !1;
|
|
4709
4710
|
try {
|
|
4710
4711
|
let url = new URL(tagSrc);
|
|
4711
|
-
|
|
4712
|
-
} catch (_) {
|
|
4713
|
-
|
|
4712
|
+
isUrlSrc = "http:" === url.protocol || "https:" === url.protocol;
|
|
4713
|
+
} catch (_) {
|
|
4714
|
+
isUrlSrc = tagSrc.startsWith("//");
|
|
4715
|
+
}
|
|
4716
|
+
let src = "";
|
|
4717
|
+
if (isUrlSrc) {
|
|
4718
|
+
if (!publicPath) return;
|
|
4719
|
+
let protocolRelativePublicPath = publicPath.replace(HTTP_PROTOCOL_REGEX, ""), protocolRelativeTagSrc = tagSrc.replace(HTTP_PROTOCOL_REGEX, "");
|
|
4720
|
+
if (!protocolRelativeTagSrc.startsWith(protocolRelativePublicPath)) return;
|
|
4721
|
+
{
|
|
4722
|
+
let tagSrcWithScheme = `http:${protocolRelativeTagSrc}`, publicPathWithScheme = protocolRelativePublicPath.startsWith("//") ? `http:${protocolRelativePublicPath}` : protocolRelativePublicPath;
|
|
4723
|
+
src = (0, external_node_path_namespaceObject.relative)(publicPathWithScheme, decodeURIComponent(tagSrcWithScheme));
|
|
4724
|
+
}
|
|
4725
|
+
} else src = (0, external_node_path_namespaceObject.relative)(publicPath, decodeURIComponent(tagSrc));
|
|
4714
4726
|
tag.attributes.integrity = this.getIntegrityChecksumForAsset(src) || function(hashFuncNames, source) {
|
|
4715
4727
|
let { createHash } = __webpack_require__("node:crypto");
|
|
4716
4728
|
return hashFuncNames.map((hashFuncName)=>`${hashFuncName}-${createHash(hashFuncName).update("string" == typeof source ? Buffer.from(source, "utf-8") : source).digest("base64")}`).join(" ");
|
|
@@ -5740,7 +5752,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
5740
5752
|
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
5741
5753
|
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, "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", !0);
|
|
5742
5754
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
5743
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.5-canary-
|
|
5755
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.5-canary-e23badc4-20251124174040"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
5744
5756
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst, deferImport })=>{
|
|
5745
5757
|
if (assertNotNill(module1.parser), assertNotNill(module1.generator), cache ? D(module1, "unsafeCache", /[\\/]node_modules[\\/]/) : D(module1, "unsafeCache", !1), F(module1.parser, "asset", ()=>({})), assertNotNill(module1.parser.asset), F(module1.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module1.parser.asset.dataUrlCondition && D(module1.parser.asset.dataUrlCondition, "maxSize", 8096), F(module1.parser, "javascript", ()=>({})), assertNotNill(module1.parser.javascript), ((parserOptions, { usedExports, inlineConst, deferImport })=>{
|
|
5746
5758
|
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", [
|
|
@@ -7390,7 +7402,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
7390
7402
|
});
|
|
7391
7403
|
}
|
|
7392
7404
|
}
|
|
7393
|
-
let CORE_VERSION = "1.6.5-canary-
|
|
7405
|
+
let CORE_VERSION = "1.6.5-canary-e23badc4-20251124174040", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
7394
7406
|
|
|
7395
7407
|
Help:
|
|
7396
7408
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -8690,7 +8702,7 @@ Help:
|
|
|
8690
8702
|
obj.children = this.stats.map((stat, idx)=>{
|
|
8691
8703
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
8692
8704
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
8693
|
-
}), childOptions.version && (obj.rspackVersion = "1.6.5-canary-
|
|
8705
|
+
}), childOptions.version && (obj.rspackVersion = "1.6.5-canary-e23badc4-20251124174040", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
8694
8706
|
let mapError = (j, obj)=>({
|
|
8695
8707
|
...obj,
|
|
8696
8708
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -9589,7 +9601,7 @@ Help:
|
|
|
9589
9601
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
9590
9602
|
},
|
|
9591
9603
|
version: (object)=>{
|
|
9592
|
-
object.version = "5.75.0", object.rspackVersion = "1.6.5-canary-
|
|
9604
|
+
object.version = "5.75.0", object.rspackVersion = "1.6.5-canary-e23badc4-20251124174040";
|
|
9593
9605
|
},
|
|
9594
9606
|
env: (object, _compilation, _context, { _env })=>{
|
|
9595
9607
|
object.env = _env;
|
|
@@ -11808,7 +11820,7 @@ Help:
|
|
|
11808
11820
|
let _options = JSON.stringify(options || {});
|
|
11809
11821
|
return binding_default().transform(source, _options);
|
|
11810
11822
|
}
|
|
11811
|
-
let exports_rspackVersion = "1.6.5-canary-
|
|
11823
|
+
let exports_rspackVersion = "1.6.5-canary-e23badc4-20251124174040", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
11812
11824
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
11813
11825
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
11814
11826
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/core",
|
|
3
|
-
"version": "1.6.5-canary-
|
|
3
|
+
"version": "1.6.5-canary-e23badc4-20251124174040",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@ast-grep/napi": "^0.39.9",
|
|
41
41
|
"@napi-rs/wasm-runtime": "1.0.7",
|
|
42
42
|
"@rsbuild/plugin-node-polyfill": "^1.4.2",
|
|
43
|
-
"@rslib/core": "0.
|
|
43
|
+
"@rslib/core": "0.18.1",
|
|
44
44
|
"@swc/types": "0.1.25",
|
|
45
45
|
"@types/node": "^20.19.25",
|
|
46
46
|
"@types/watchpack": "^2.4.5",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@module-federation/runtime-tools": "0.21.4",
|
|
60
60
|
"@rspack/lite-tapable": "1.1.0",
|
|
61
|
-
"@rspack/binding": "npm:@rspack-canary/binding@1.6.5-canary-
|
|
61
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.6.5-canary-e23badc4-20251124174040"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@swc/helpers": ">=0.5.1"
|