mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
framework: fix sse args parse
This commit is contained in:
2 files changed
+10
-5
No files matched your search
@@ -10,7 +10,7 @@ export const apply = (ctx: Context) => {
|
||||
const roots = [root];
|
||||
if (process.env.WATCH_ROOT) roots.push(process.env.WATCH_ROOT);
|
||||
const watcher = watch(roots, {
|
||||
ignored: (file) => [
|
||||
ignored: (file) => file.endsWith('.log') || [
|
||||
'node_modules', '.git', 'logs', '.cache', '.yarn', 'tsconfig.tsbuildinfo',
|
||||
].some((rule) => file.startsWith(`${rule}/`) || file.endsWith(`/${rule}`) || file.includes(`/${rule}/`)),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user