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 19f7b70 commit 2bc3d57Copy full SHA for 2bc3d57
packages/vite/src/node/build.ts
@@ -915,7 +915,7 @@ async function buildEnvironment(
915
916
if (server) {
917
// watching the files
918
- for (const file of bundle!.watchFiles) {
+ for (const file of await bundle!.watchFiles) {
919
if (path.isAbsolute(file) && fs.existsSync(file)) {
920
server.watcher.add(file)
921
}
@@ -998,7 +998,7 @@ async function buildEnvironment(
998
999
server.watcher.on('change', async (file) => {
1000
// The playground/hmr test `plugin hmr remove custom events` need to skip the change of unused files.
1001
- if (!bundle!.watchFiles.includes(file)) {
+ if (!(await bundle!.watchFiles).includes(file)) {
1002
return
1003
1004
0 commit comments