Reverted commit D4036668
Reviewed By: cpojer Differential Revision: D4036668 fbshipit-source-id: 5b75709526c3e87774e0943a76d55cd729c6143d
This commit is contained in:
parent
ebc8126ad2
commit
8acf1a052e
|
@ -5,8 +5,6 @@
|
|||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @flow
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
|
@ -17,15 +15,9 @@ require('./src/node-haste/fastpath').replace();
|
|||
var debug = require('debug');
|
||||
var Activity = require('./src/Activity');
|
||||
|
||||
type Options = {
|
||||
nonPersistent: boolean,
|
||||
verbose: boolean,
|
||||
}
|
||||
|
||||
exports.createServer = createServer;
|
||||
exports.Activity = Activity;
|
||||
|
||||
exports.getOrderedDependencyPaths = function(options: Options, bundleOptions: mixed) {
|
||||
exports.getOrderedDependencyPaths = function(options, bundleOptions) {
|
||||
var server = createNonPersistentServer(options);
|
||||
return server.getOrderedDependencyPaths(bundleOptions)
|
||||
.then(function(paths) {
|
||||
|
@ -48,7 +40,7 @@ function enableDebug() {
|
|||
debug.enable(debugPattern);
|
||||
}
|
||||
|
||||
function createServer(options: Options) {
|
||||
function createServer(options) {
|
||||
// the debug module is configured globally, we need to enable debugging
|
||||
// *before* requiring any packages that use `debug` for logging
|
||||
if (options.verbose) {
|
||||
|
@ -59,7 +51,7 @@ function createServer(options: Options) {
|
|||
return new Server(omit(options, ['verbose']));
|
||||
}
|
||||
|
||||
function createNonPersistentServer(options: Options) {
|
||||
function createNonPersistentServer(options) {
|
||||
Activity.disable();
|
||||
// Don't start the filewatcher or the cache.
|
||||
if (options.nonPersistent == null) {
|
||||
|
|
Loading…
Reference in New Issue