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',
|
command: 'skipflow',
|
||||||
description: 'Disable flow checks'
|
description: 'Disable flow checks'
|
||||||
|
}, {
|
||||||
|
command: 'nonPersistent',
|
||||||
|
description: 'Disable file watcher'
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
if (options.projectRoots) {
|
if (options.projectRoots) {
|
||||||
|
@ -199,6 +202,7 @@ function statusPageMiddleware(req, res, next) {
|
||||||
|
|
||||||
function getAppMiddleware(options) {
|
function getAppMiddleware(options) {
|
||||||
return ReactPackager.middleware({
|
return ReactPackager.middleware({
|
||||||
|
nonPersistent: options.nonPersistent,
|
||||||
projectRoots: options.projectRoots,
|
projectRoots: options.projectRoots,
|
||||||
blacklistRE: blacklist(options.platform),
|
blacklistRE: blacklist(options.platform),
|
||||||
cacheVersion: '2',
|
cacheVersion: '2',
|
||||||
|
|
|
@ -67,7 +67,6 @@ 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