Skip to content

Commit

Permalink
Better comments in the generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Feb 21, 2024
1 parent f759644 commit 7542ef2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vite-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export function viteEnvs(params?: {

dTsFileContent += [
"type ImportMetaEnv = {",
" // Auto-generated by `npx vite-envs update-types` and hot-reloaded by Vite",
" // Auto-generated by `npx vite-envs update-types` and hot-reloaded by the `vite-env` plugin",
...Object.entries({
...baseBuildTimeEnv,
...computedEnv,
Expand Down Expand Up @@ -226,6 +226,8 @@ export function viteEnvs(params?: {

dTsFileContent += [
`interface ImportMeta {`,
" // Auto-generated by `npx vite-envs update-types`",
``,
` url: string`,
``,
` readonly hot?: import('vite-envs/types/hot').ViteHotContext`,
Expand Down

0 comments on commit 7542ef2

Please sign in to comment.