Skip to content
Permalink
Browse files
Revert "CB-13163: fix using relative paths in calls to require."
This reverts commit 65fd0f6.
  • Loading branch information
stevengill committed Aug 25, 2017
1 parent 5a1bffc commit f623343b9ff11fbe7c72d319932cc1fd3fdafed2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
@@ -31,7 +31,7 @@ var require,
requireStack = [],
// Map of module ID -> index into requireStack of modules currently being built.
inProgressModules = {},
SEPARATOR = "/";
SEPARATOR = ".";



@@ -145,15 +145,5 @@ describe("require + define", function () {
define("a", factory);
require("a");
});

it("can handle multiple defined modules that use relative require paths", function () {
define("plugin/ios/foo", function (require, exports, module) {
module.exports = require("./bar") * 2;
});
define("plugin/ios/bar", function (require, exports, module) {
module.exports = 2;
});
expect(require("plugin/ios/foo")).toEqual(4);
});
});
});

0 comments on commit f623343

Please sign in to comment.