Pass current mode and git commit hash as compile-time vars
Open
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
So, I understand that the git commit hash can be passed with `--env.VERSION "$(git rev-parse HEAD)"` but I also would like to compile in the modes: cjs, mjs or iffe. Can I do that?

Contributor guide
Assessment
This issue has not been assessed yet.