enb / enb-bh

BH support for ENB
Other
15 stars 12 forks source link

windows: wrong paths for `require` #42

Closed blond closed 9 years ago

blond commented 9 years ago

The technology bh-server uses the wrong paths for require.

Actual

/* ... */
dropRequireCache(require, require.resolve("..\node_modules\bh\lib\bh.js"));
var BH = require("..\node_modules\bh\lib\bh.js");
/* ... */

Expected

/* ... */
dropRequireCache(require, require.resolve("../node_modules/bh/lib/bh.js"));
var BH = require("../node_modules/bh/lib/bh.js");
/* ... */