feat: Add manual polling option

Signed-off-by: Florian BOUILLON <f.bouillon@aptatio.com>
This commit is contained in:
Florian Bouillon 2023-12-06 11:00:16 +01:00
parent 8e9feab97b
commit 13221b202a

View File

@ -62,8 +62,8 @@ export default defineConfig({
watch: { watch: {
// Ignore some paths // Ignore some paths
ignored: [], ignored: [],
// support WSL strange things // support polling and WSL
usePolling: !!process.env.WSL_DISTRO_NAME usePolling: !!(process.env.USE_POLLING ?? process.env.WSL_DISTRO_NAME)
} }
} }
}, },