Skip to content

Commit

Permalink
Remove extra condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Jan 11, 2023
1 parent 0ee6e12 commit 9863175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus/src/server/routes.ts
Expand Up @@ -79,7 +79,7 @@ export function genChunkName(
const shortHash = simpleHash(modulePath, 3);
str = `${preferredName}${shortHash}`;
}
const name = str === '/' ? 'index' : docuHash(str);
const name = docuHash(str);
chunkName = prefix ? `${prefix}---${name}` : name;
}
chunkNameCache.set(modulePath, chunkName);
Expand Down

0 comments on commit 9863175

Please sign in to comment.