Move requires around to make Browserify cooperate
This commit is contained in:
parent
c43978bea2
commit
e9f73228f1
|
@ -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.";
|
||||
|
|
|
@ -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.";
|
||||
|
|
Loading…
Reference in New Issue