repl: fix referrer for dynamic import · nodejs/node@49fb529 · GitHub
Skip to content

Commit 49fb529

Browse files
coreyfarrellbcoe
authored andcommitted
repl: fix referrer for dynamic import
The ESM loader does not accept a directory as the referrer, it requires a path within the directory. Add `/repl` to ensure relative dynamic imports can succeed. Fixes: #19570 PR-URL: #30609 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Coe <bencoe@gmail.com>
1 parent 6bf5a1d commit 49fb529

2 files changed

Lines changed: 29 additions & 3 deletions

File tree

lib/repl.js

Lines changed: 5 additions & 3 deletions
Lines changed: 24 additions & 0 deletions

0 commit comments

Comments
 (0)