This repository was archived by the owner on Jun 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -59,3 +59,9 @@ To solve some issues with running on docker container providers set this:
59
59
``` ts
60
60
fuse .run ({ chokidar: { awaitWriteFinish: true } });
61
61
```
62
+
63
+ This will allow you to stop the watcher from looking in folders like node_modules:
64
+
65
+ ``` ts
66
+ fuse .run ({ chokidarPaths: [' path' ] );
67
+ ` ` `
Original file line number Diff line number Diff line change @@ -30,14 +30,16 @@ export class BundleProducer {
30
30
public entryPackageFile : string ;
31
31
private injectedCode = new Map < string , string > ( ) ;
32
32
private chokidarOptions : any ;
33
+ private chokidarPaths : any ;
33
34
private warnings = new Map < string , string [ ] > ( ) ;
34
35
constructor ( public fuse : FuseBox ) {
35
36
this . runner = new BundleRunner ( this . fuse ) ;
36
37
}
37
38
38
- public run ( opts : { chokidar ?: any ; runType ?: string } ) : Promise < BundleProducer > {
39
+ public run ( opts : { chokidar ?: any ; chokidarPaths ?: any ; runType ?: string } ) : Promise < BundleProducer > {
39
40
if ( opts ) {
40
41
this . chokidarOptions = opts . chokidar ;
42
+ this . chokidarPaths = opts . chokidarPaths ;
41
43
}
42
44
43
45
/** Collect information about watchers and start w
729A
atching */
@@ -190,7 +192,7 @@ export class BundleProducer {
190
192
191
193
let ready = false ;
192
194
chokidar
193
- . watch ( this . fuse . context . homeDir , this . chokidarOptions || { } )
195
+ . watch ( this . chokidarPaths || this . fuse . context . homeDir , this . chokidarOptions || { } )
194
196
. on ( "all" , ( event , fp ) => {
195
197
if ( ready ) {
196
198
this . onChanges ( settings , fp ) ;
You can’t perform that action at this time.
0 commit comments