We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f89941d commit f1a3953Copy full SHA for f1a3953
packages/vite/src/node/build.ts
@@ -930,7 +930,7 @@ async function buildEnvironment(
930
931
if (server) {
932
// watching the files
933
- for (const file of bundle!.watchFiles) {
+ for (const file of await bundle!.watchFiles) {
934
if (path.isAbsolute(file) && fs.existsSync(file)) {
935
server.watcher.add(file)
936
}
@@ -1013,7 +1013,7 @@ async function buildEnvironment(
1013
1014
server.watcher.on('change', async (file) => {
1015
// The playground/hmr test `plugin hmr remove custom events` need to skip the change of unused files.
1016
- if (!bundle!.watchFiles.includes(file)) {
+ if (!(await bundle!.watchFiles).includes(file)) {
1017
return
1018
1019
0 commit comments