Experimental modules warning does not show when using dynamic import #30601
Labels
esm
Issues and PRs related to the ECMAScript Modules implementation.
good first issue
Issues that are suitable for first-time contributors.
help wanted
Issues that need assistance from volunteers or PRs that need help to proceed.
As reported by @coreyfarrell here -
When using dynamic import the experimental modules implementation is effectively used "lazily". Even when loaded at this point the warning should still be displayed.
Currently the warning is implemented at https://github.com/nodejs/node/blob/master/lib/internal/process/esm_loader.js#L45.
When calling the first dynamic import through https://github.com/nodejs/node/blob/master/lib/internal/process/esm_loader.js#L26 we should also be able to ensure the warning is provided.
The text was updated successfully, but these errors were encountered: