nitro-nightly 3.0.1-20260120-134104-795e774f → 3.0.1-20260120-140218-d2383f00
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/_build/common.mjs +11 -2
- package/package.json +1 -1
package/dist/_build/common.mjs
CHANGED
|
@@ -17845,8 +17845,17 @@ function libChunkName(id) {
|
|
|
17845
17845
|
return `_libs/${id.match(/.*(?:[/\\])node_modules(?:[/\\])(?<package>@[^/\\]+[/\\][^/\\]+|[^/\\.][^/\\]*)/)?.groups?.package || "common"}`;
|
|
17846
17846
|
}
|
|
17847
17847
|
function getChunkName(chunk, nitro) {
|
|
17848
|
-
if (chunk.name
|
|
17849
|
-
if (chunk.
|
|
17848
|
+
if (chunk.name === "rolldown-runtime") return "_runtime.mjs";
|
|
17849
|
+
if (chunk.moduleIds.every((id) => id.includes("node_modules"))) {
|
|
17850
|
+
const pkgNames = [...new Set(chunk.moduleIds.map((id) => id.match(/.*[/\\]node_modules[/\\](?<package>@[^/\\]+[/\\][^/\\]+|[^/\\]+)/)?.groups?.package).filter(Boolean).map((name) => name.split(/[/\\]/).pop()).filter(Boolean))].sort((a$1, b$2) => a$1.length - b$2.length);
|
|
17851
|
+
let chunkName = "";
|
|
17852
|
+
for (const name of pkgNames) {
|
|
17853
|
+
const separator = chunkName ? "+" : "";
|
|
17854
|
+
if ((chunkName + separator + name).length > 30) return `_libs/_[hash].mjs`;
|
|
17855
|
+
chunkName += separator + name;
|
|
17856
|
+
}
|
|
17857
|
+
return `_libs/${chunkName || "_"}.mjs`;
|
|
17858
|
+
}
|
|
17850
17859
|
if (chunk.moduleIds.length === 0) return `_chunks/${chunk.name}.mjs`;
|
|
17851
17860
|
const ids = chunk.moduleIds.filter((id) => !virtualRe.test(id));
|
|
17852
17861
|
if (ids.length === 0) {
|