Skip to content

esm: ensure cwd-relative imports for module --eval

Fixes #28160 (closed) ensuring that when using node --experimental-modules --input-type module --eval, that any import statements are cwd-relative.

Huge thanks to @zeckson for setting up these tests to begin with and @Avaq for the clear issue report on this!

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading