3 ms·
I haven’t touched module loader hooks for a while, but my impression is that the changes bring it more conceptually in line with require hooks. Loader authors w
by eyelidlessness 3y ago
I haven’t touched module loader hooks for a while, but my impression is that the changes bring it more conceptually in line with require hooks. Loader authors will likely provide the register call for end users (to load with --import, roughly analogous to loading require hooks with --require?), so you won’t need to call anything in an extra step unless you’re authoring a loader yourself. In which case this provides for composition patterns which the earlier CLI-only entry (mostly) didn’t.