nitro-nightly 3.0.1-20260121-180512-722efdcf → 3.0.1-20260121-181105-22bd0c63
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 +1 -1
- package/package.json +1 -1
package/dist/_build/common.mjs
CHANGED
|
@@ -17469,7 +17469,7 @@ function libChunkName(id) {
|
|
|
17469
17469
|
}
|
|
17470
17470
|
function getChunkName(chunk, nitro) {
|
|
17471
17471
|
if (chunk.name === "rolldown-runtime") return "_runtime.mjs";
|
|
17472
|
-
if (chunk.moduleIds.every((id) => id
|
|
17472
|
+
if (chunk.moduleIds.every((id) => /node_modules[/\\]\w/.test(id))) {
|
|
17473
17473
|
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);
|
|
17474
17474
|
let chunkName = "";
|
|
17475
17475
|
for (const name of pkgNames) {
|