node/test/fixtures/es-module-loaders
guybedford d853758a22 module: fix hook module CJS dependency loading
It can be useful to load dependencies as part of the loader hook
definition file. This fixes a bug where `import x from 'x'` would
always return `x` as `undefined` if the import was made in a loader
hooks definition module.

A parallel change to the CJS loading injection process meant that the
CJS module wasn't being injected into the correct loader instance,
which is corrected here with a test.

PR-URL: https://github.com/nodejs/node/pull/16381
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2017-10-28 13:22:55 +02:00
..
builtin-named-exports-loader.mjs
example-loader.mjs
js-as-esm.js
js-loader.mjs
loader-dep.js module: fix hook module CJS dependency loading 2017-10-28 13:22:55 +02:00
loader-with-dep.mjs module: fix hook module CJS dependency loading 2017-10-28 13:22:55 +02:00
not-found-assert-loader.mjs