[ReactNative] Revert packager ignoring node_modules
This commit is contained in:
parent
6aea50d6f8
commit
8d6d0ec4a4
|
@ -60,7 +60,7 @@
|
|||
"react-timer-mixin": "^0.13.1",
|
||||
"react-tools": "0.13.2",
|
||||
"rebound": "^0.0.12",
|
||||
"sane": "tadeuzagallo/sane#a029f8b04a",
|
||||
"sane": "^1.1.2",
|
||||
"source-map": "0.1.31",
|
||||
"stacktrace-parser": "frantic/stacktrace-parser#493c5e5638",
|
||||
"uglify-js": "~2.4.16",
|
||||
|
|
|
@ -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