You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/design/overview.md
+2
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ There are currently [three loader hooks](https://github.com/nodejs/node/tree/mas
4
4
5
5
1.`resolve`: Takes a specifier (the string after `from` in an `import` statement) and converts it into an URL to be loaded.
6
6
7
+
1.`loadManifest`: Takes the resolved URL and returns the `package.json` from the location (or `null` if it doesn't exist).
8
+
7
9
1.`load`: Takes the resolved URL and returns runnable code (JavaScript, Wasm, etc.) as well as the name of one of Node’s ESM loader’s [“translators”](https://github.com/nodejs/node/blob/master/lib/internal/modules/esm/translators.js):
0 commit comments