We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b70ef25 commit a3d3b12Copy full SHA for a3d3b12
packages/gatsby/src/utils/js-chunk-names.ts
@@ -38,6 +38,9 @@ function replaceUnifiedRoutesKeys(
38
39
const chunkNameCache = new Map()
40
export function generateComponentChunkName(componentPath: string): string {
41
+ if (componentPath.indexOf(`?__mdxPath=`) !== -1) {
42
+ componentPath = componentPath.split(`?__mdxPath=`)[1]
43
+ }
44
if (chunkNameCache.has(componentPath)) {
45
return chunkNameCache.get(componentPath)
46
} else {
0 commit comments