diff --git a/.esbuild/build.ts b/.esbuild/build.ts index 2dd2100690..a97608fd39 100644 --- a/.esbuild/build.ts +++ b/.esbuild/build.ts @@ -38,7 +38,7 @@ const buildPackage = async (entryName: keyof typeof packageOptions) => { continue; } const fileName = Object.keys(metafile.outputs) - .filter((file) => file.startsWith('mermaid') && file.endsWith('js'))[0] + .filter((file) => !file.includes('chunks') && file.endsWith('js'))[0] .replace('dist/', ''); await writeFile(`stats/${fileName}.meta.json`, JSON.stringify(metafile)); }