File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ export function watchProject(
6666
6767 // lib dir
6868 const libDirConfig = project . config ?. project [ kProjectLibDir ] ;
69+ const libDirSource = libDirConfig
70+ ? join ( project . dir , libDirConfig )
71+ : undefined ;
6972 const libDir = libDirConfig ? join ( outputDir , libDirConfig ) : undefined ;
7073
7174 // if any of the paths are in the output dir (but not the lib dir) then return true
@@ -84,6 +87,10 @@ export function watchProject(
8487
8588 // is this a resource file?
8689 const isResourceFile = ( path : string ) => {
90+ // exclude libdir
91+ if ( libDirSource && path . startsWith ( libDirSource ) ) {
92+ return false ;
93+ }
8794 if ( renderResult ) {
8895 if ( project . files . resources ?. includes ( path ) ) {
8996 return true ;
You can’t perform that action at this time.
0 commit comments