mirror of
https://github.com/status-im/metro.git
synced 2025-01-23 17:38:59 +00:00
[ReactNative] Add option to file watcher to ignore node_modules
This commit is contained in:
parent
ea9ca4637c
commit
fddc50b98b
1
react-packager/src/FileWatcher/index.js
vendored
1
react-packager/src/FileWatcher/index.js
vendored
@ -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…
x
Reference in New Issue
Block a user