- Optimize tsup config type. (by @chouchouji)
- Store script tag for global variable in
head
instead ofbody
. (by @richardvanthof)
- Fix type
VitePluginVersionMarkInput
. - Update README.
- Support
outputFile
. (by @peerless-hero)
- Yarn switch to pnpm.
- Add unit tests.
- Add commitlint.
- Change logo.
- Fix source Map warning on build.
- Update the confusing attributes
ifShortSHA
andifGitSHA
. If you want to enableifShortSHA
, you do not need to configureifGitSHA
to betrue
. (by @littlecxm) - The default value of
ifShortSHA
is changed tofalse
.
- Support export version field in the entry file.
- Fix the bug that the
version
is not defined global afterifGlobal: true
.
- The ifGlobal setting mode is switched to vite.define, so that the node.js environment can read. (by @censujiang)
- Support provide a custom command to retrieve the version. (by @kgutwin)
- Optimizations & support Nuxt3+.
- First release & bug fixing.