mirror of https://github.com/status-im/metro.git
[ReactNative] Add option to file watcher to ignore node_modules
This commit is contained in:
parent
ea9ca4637c
commit
fddc50b98b
|
@ -67,6 +67,7 @@ function createWatcher(rootConfig) {
|
||||||
var watcher = new Watcher(rootConfig.dir, {
|
var watcher = new Watcher(rootConfig.dir, {
|
||||||
glob: rootConfig.globs,
|
glob: rootConfig.globs,
|
||||||
dot: false,
|
dot: false,
|
||||||
|
ignore: 'node_modules',
|
||||||
});
|
});
|
||||||
|
|
||||||
return new Promise(function(resolve, reject) {
|
return new Promise(function(resolve, reject) {
|
||||||
|
|
Loading…
Reference in New Issue