node/lib/internal/modules
Wei Zhu c0aebed4b3
esm: fix inconsistency with importAssertion in resolve hook
As the documentation states, the `context.importAssertion` should be
still supported and emit a warning. This is true for the `load` hook,
but not correct for context of the `resolve` hook.

This commit fixes the inconsistency.

PR-URL: https://github.com/nodejs/node/pull/55365
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2024-10-15 21:02:07 +02:00
..
cjs module: check --experimental-require-module separately from detection 2024-10-08 20:26:13 +00:00
esm esm: fix inconsistency with importAssertion in resolve hook 2024-10-15 21:02:07 +02:00
helpers.js module: throw ERR_NO_TYPESCRIPT when compiled without amaro 2024-10-11 15:41:38 +00:00
package_json_reader.js lib,src: remove --experimental-policy 2024-05-07 16:25:45 +00:00
run_main.js module: support loading entrypoint as url 2024-09-27 15:26:48 +08:00