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:
5959``` ts
6060fuse .run ({ chokidar: { awaitWriteFinish: true } });
6161```
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 {
3030 public entryPackageFile : string ;
3131 private injectedCode = new Map < string , string > ( ) ;
3232 private chokidarOptions : any ;
33+ private chokidarPaths : any ;
3334 private warnings = new Map < string , string [ ] > ( ) ;
3435 constructor ( public fuse : FuseBox ) {
3536 this . runner = new BundleRunner ( this . fuse ) ;
3637 }
3738
38- public run ( opts : { chokidar ?: any ; runType ?: string } ) : Promise < BundleProducer > {
39+ public run ( opts : { chokidar ?: any ; chokidarPaths ?: any ; runType ?: string } ) : Promise < BundleProducer > {
3940 if ( opts ) {
4041 this . chokidarOptions = opts . chokidar ;
42+ this . chokidarPaths = opts . chokidarPaths ;
4143 }
4244
4345 /** Collect information about watchers and start watching */
@@ -190,7 +192,7 @@ export class BundleProducer {
190192
191193 let ready = false ;
192194 chokidar
193- . watch ( this . fuse . context . homeDir , this . chokidarOptions || { } )
195+ . watch ( this . chokidarPaths || this . fuse . context . homeDir , this . chokidarOptions || { } )
194196 . on ( "all" , ( event , fp ) => {
195197 if ( ready ) {
196198 this . onChanges ( settings , fp ) ;
You can’t perform that action at this time.
0 commit comments