Skip to content

repl: fix referrer for dynamic import#30609

Closed
coreyfarrell wants to merge 1 commit intonodejs:masterfrom
coreyfarrell:repl-dynamic-import
Closed

repl: fix referrer for dynamic import#30609
coreyfarrell wants to merge 1 commit intonodejs:masterfrom
coreyfarrell:repl-dynamic-import

Conversation

@coreyfarrell
Copy link
Member

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

Checklist

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. esm Issues and PRs related to the ECMAScript Modules implementation. repl Issues and PRs related to the REPL subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dynamic import can't be used in the REPL

7 participants