Move requires around to make Browserify cooperate

This commit is contained in:
Andrew Stewart 2014-11-05 15:24:50 -08:00
parent c43978bea2
commit e9f73228f1
2 changed files with 6 additions and 7 deletions

View File

@ -14,6 +14,12 @@
var Logger = require('./logger');
// Explicitly these modules here, so Browserify can grab them later
require('./test/loopback');
require('./test/test-adaptor');
require('./test/test-driver');
require('./test/ping');
var missingModuleError = function(module) {
var string = "Cannot find the '" + module + "' module.\n";
string += "This problem might be fixed by installing it with 'npm install " + module + "' and trying again.";

View File

@ -17,13 +17,6 @@ var Connection = require("./connection"),
var Async = require("async"),
EventEmitter = require('events').EventEmitter;
// Require these modules here, so Browserify can grab them later if necessary.
require('./test/loopback');
require('./test/test-adaptor');
require('./test/test-driver');
require('./test/ping');
var missingModuleError = function(module) {
var string = "Cannot find the '" + module + "' module. ";
string += "Please install it with 'npm install " + module + "' and try again.";