-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Labels
cliIssues and PRs related to the Node.js command line interface.Issues and PRs related to the Node.js command line interface.esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.never-staleMark issue so that it is never considered staleMark issue so that it is never considered stale
Description
Is your feature request related to a problem? Please describe.
-r
can be used only on CommonJS modules, as documented here. Pre-loading an .mjs
or an ESM module package is currently not possible.
Describe the solution you'd like
Either expansion of -r
to support ESM modules (might break some people, not sure the scope of those changes) or the inclusion of a --module, -m <module>
flag. Neither the long nor short arguments appear to exist in either Node or v8 according to the above docs (correct me if I'm wrong).
Describe alternatives you've considered
None, I perceive this to be a hole in the CLI option set.
sindresorhus, JacobLey, LiviaMedeiros, benjamingr, link89 and 8 more
Metadata
Metadata
Assignees
Labels
cliIssues and PRs related to the Node.js command line interface.Issues and PRs related to the Node.js command line interface.esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.never-staleMark issue so that it is never considered staleMark issue so that it is never considered stale