Skip to content

Commit ce2c4e0

Browse files
2021-10-26 notes (#47)
Co-authored-by: Jacob Smith <[email protected]>
1 parent aa13ec9 commit ce2c4e0

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

doc/meetings/2021-10-26.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Node.js Loaders Team Meeting 2021-10-26
2+
3+
## Links
4+
5+
* **Recording**: https://www.youtube.com/watch?v=3V3ldxn6iV0
6+
* **GitHub Issue**: https://github.com/nodejs/loaders/issues/45
7+
8+
## Present
9+
10+
* Geoffrey Booth: @GeoffreyBooth
11+
* Bradley Farias: @bmeck
12+
* Jacob Smith: @JakobJingleheimer
13+
14+
## Agenda
15+
16+
## Announcements
17+
18+
*Extracted from **loaders-agenda** labeled issues and pull requests from the **nodejs org** prior to the meeting.*
19+
20+
### nodejs/loaders
21+
22+
* update to support chaining & incorporate short-circuit as a return flag [#41](https://github.com/nodejs/loaders/pull/41)
23+
* Iterative chaining design [#32](https://github.com/nodejs/loaders/pull/32)
24+
25+
26+
Discussion of the two proposals side-by-side. We found that the “iterative” version needed several things added to it to regain the equivalent functionality of the “recursive” version, such as needing to pass a mutated `context` from one hook to another, and signal not just when a hook is intending to short circuit (like a `for` loop’s `break`) but also when it’s intending to skip (like a `continue`). Based on this increased complexity, the three of us are leaning toward the “recursive” design.
27+
28+
Next steps are to finish cleaning up the two design docs (add information about Node erroring if `shortCircuit: true` is not passed, add the above stuff about `context` to the iterative design) and merge in the PRs for both design docs. Then, assuming we’re still leaning toward “recursive,” ask the whole loaders team for feedback on that design doc. If the feedback is negative, possibly ask them to review the other design doc, or a third one that Bradley might write that uses `super` and `extends`. Hopefully the feedback is positive and Jacob can go forward and implement chaining.
29+
30+
Also on the to-do list: break up some of the longer files in the `esm/` folder, such as `loader.js` and `resolve.js`, to split out many functions into their own files. Moving some functions from `ESMLoader` class methods into pure functions will also fulfill a prerequisite of making those functions available as utility functions, which is another loaders feature request.

0 commit comments

Comments
 (0)