esbuild / esbuild.github.io

62 stars 45 forks source link

How was example-metafile.json generated? #45

Open mootari opened 6 months ago

mootari commented 6 months ago

The Bundle Size Analyzer references an example-metafile.json which is not included in the repository, and as far as I can tell neither npm run build nor make -C src/analyze generate it.

How does the file get included in the gh-pages build, and how can I generate it myself?

evanw commented 5 months ago

It was generated manually and placed in the gh-pages branch manually. You can sort of generate it yourself by running make bench-readmin-esbuild in the esbuild repo and then adding the --metafile flag to the esbuild command that does the build. But don't expect it to generate the exact same file as esbuild has changed in the meantime. It's just meant to be a one-off example file. It doesn't have a lot of process around it.