Skip to content

Commit 465cd6d

Browse files
authored
feat: keep hot-update files in memory (#20)
1 parent 36d96c3 commit 465cd6d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/xtensio/src/dev.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ export default function devCommand(cwd: string) {
2626
})
2727
app.use(
2828
devMiddleware(compiler, {
29-
writeToDisk: true
29+
writeToDisk: (filePath) => {
30+
return (
31+
!/hot-update\.json$/.test(filePath) &&
32+
!/hot-update\.js$/.test(filePath)
33+
)
34+
}
3035
})
3136
)
3237

0 commit comments

Comments
 (0)