chore: Add analyzer comment

This commit is contained in:
Sidharth Vinod 2023-08-14 08:37:02 +05:30
parent 9cbebbb8a0
commit 5c2a6b5eb1
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ const buildPackage = async (entryName: keyof typeof packageOptions) => {
const fileName = Object.keys(metafile.outputs)
.filter((file) => !file.includes('chunks') && file.endsWith('js'))[0]
.replace('dist/', '');
// Upload metafile into https://esbuild.github.io/analyze/
await writeFile(`stats/${fileName}.meta.json`, JSON.stringify(metafile));
}
}