Skip to content

Commit

Permalink
add basic watch file support
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Sep 11, 2024
1 parent 2ff89c0 commit dead31b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/virtual-entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export function renderEntrypoint(

return {
src: entryTemplate(params),
watches: [],
watches: ['app/**/*'],
};
}

Expand Down Expand Up @@ -330,7 +330,7 @@ function shouldSplitRoute(routeName: string, splitAtRoutes: (RegExp | string)[]

export function getAppFiles(appRoot: string): Set<string> {
const files: string[] = walkSync(appRoot, {
ignore: ['_babel_filter_.js', 'app.js', 'assets', 'testem.js', 'node_modules'],
directories: false,
});
return new Set(files);
}
Expand Down

0 comments on commit dead31b

Please sign in to comment.