Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Invalid sorting of type file generation, resulting in unnecessary git versions
Reading DTS file is empty while writing the file is incomplete
Debugger attached.$$: typeof import('vue/macros')['$$ ']
环境变量 VITE_DROP_CONSOLE undefined
configResolved 《======= 【Trigger Event 1】
scanDirs writeConfigFilesThrottled
writeConfigFiles
readFile Ing 1700340039378 《======= 【Trigger Event 1 readFile Ing】
originalContent:/* eslint-disable /
/ prettier-ignore /
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
export {}
declare global {
const $: typeof import('vue/macros')['$']
const $$: typeof import('vue/macros')['$$']
const $computed: typeof import('vue/macros')['$c 1700340039385
content !== lastDTS writeFile true
buildStart 《======= 【Trigger Event 2】
scanDirs writeConfigFilesThrottled
writeConfigFiles
readFile Ing 1700340039970 《======= 【Trigger Event 2 readFile Ing】
writeFile ing : 《======= 【Trigger Event 1 writeFile Ing】
E:\hby\project**\packages\vite-vue3-admin-main\auto-imports.d.ts
/ eslint-disable /
/ prettier-ignore */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
export {}
declare global {
const $: typeof import('vue/macros')['$']
const
const $computed: typeof import('vue/macros')['$c 1700340039988
VITE v4.5.0 ready in 7238 ms
➜ Local: http://localhost:8088/$$: typeof import('vue/macros')['$$ ']
➜ Network: http://198.18.0.1:8088/
➜ Network: http://192.168.110.110:8088/
➜ press h to show help
originalContent: 1700340040095 《======= 【Trigger Event 2 readFile End content empty】
content !== lastDTS writeFile false
writeFile end : 1700340040098 《======= 【Trigger Event 1 writeFile End】
writeFile ing :
E:\hby\project**\packages\vite-vue3-admin-main\auto-imports.d.ts
/* eslint-disable /
/ prettier-ignore */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
export {}
declare global {
const
const $: typeof import('vue/macros')['$']
const $computed: typeof import('vue/macros')['$c 1700340040104
writeFile end : 1700340040115
It was found that the configResolved event triggered writing to the file while the buildStart event triggered it
Vite related pr
vitejs/vite#1693
Can also read file locks