Skip to content

Commit fb26f6c

Browse files
committed
fix .. import
1 parent 10e3265 commit fb26f6c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ctx-module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function CtxModule(ctx, cnId, moduleCache, parent)
143143
*/
144144
function canonicalize(moduleIdentifier)
145145
{
146-
if (moduleIdentifier.startsWith('./') || moduleIdentifier.startsWith('../') || moduleIdentifier === '.')
146+
if (moduleIdentifier.startsWith('./') || moduleIdentifier.startsWith('../') || moduleIdentifier === '.' || moduleIdentifier === '..')
147147
moduleIdentifier = relativeResolve(that.path, moduleIdentifier);
148148
else
149149
moduleIdentifier = relativeResolve(moduleIdentifier);

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)