mirror of https://github.com/status-im/metro.git
[ReactNative] Revert packager ignoring node_modules
This commit is contained in:
parent
712c52609b
commit
24026b6c25
|
@ -53,6 +53,9 @@ var options = parseCommandLine([{
|
|||
}, {
|
||||
command: 'skipflow',
|
||||
description: 'Disable flow checks'
|
||||
}, {
|
||||
command: 'nonPersistent',
|
||||
description: 'Disable file watcher'
|
||||
}]);
|
||||
|
||||
if (options.projectRoots) {
|
||||
|
@ -199,6 +202,7 @@ function statusPageMiddleware(req, res, next) {
|
|||
|
||||
function getAppMiddleware(options) {
|
||||
return ReactPackager.middleware({
|
||||
nonPersistent: options.nonPersistent,
|
||||
projectRoots: options.projectRoots,
|
||||
blacklistRE: blacklist(options.platform),
|
||||
cacheVersion: '2',
|
||||
|
|
|
@ -67,7 +67,6 @@ function createWatcher(rootConfig) {
|
|||
var watcher = new Watcher(rootConfig.dir, {
|
||||
glob: rootConfig.globs,
|
||||
dot: false,
|
||||
ignore: '**/node_modules/**/*',
|
||||
});
|
||||
|
||||
return new Promise(function(resolve, reject) {
|
||||
|
|
Loading…
Reference in New Issue