Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 7d289a6

Browse files
committed
Revert "upgrade to latest api"
This reverts commit 2ed0d44.
1 parent 2ed0d44 commit 7d289a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node-es-module-loader.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ function NodeESModuleLoader(baseKey, rcPath) {
4949
NodeESModuleLoader.prototype = Object.create(RegisterLoader.prototype);
5050

5151
// normalize is never given a relative name like "./x", that part is already handled
52-
NodeESModuleLoader.prototype[RegisterLoader.resolve] = function(key, parent, metadata) {
53-
key = RegisterLoader.prototype[RegisterLoader.resolve].call(this, key, parent, metadata) || key;
52+
NodeESModuleLoader.prototype[RegisterLoader.normalize] = function(key, parent, metadata) {
53+
key = RegisterLoader.prototype.normalize.call(this, key, parent, metadata) || key;
5454

5555
return Promise.resolve()
5656
.then(function() {

0 commit comments

Comments
 (0)