Skip to content

Commit 6aeafc2

Browse files
authored
Add agenda item around optimal Javascript module design (#159)
Add myself to the agenda.
1 parent 0c1488e commit 6aeafc2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

agendas/2025/06-Jun/25-graphql-js-wg-june-2025.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ implementation.
3737
| Lenz Weber-Tronic | @phryneas | Apollo GraphQL | Wuerzburg, DE |
3838
| Pablo Saez | @PabloSzx | Independent | New York, US |
3939
| Denis Badurina | @enisdenjo | The Guild | Sarajevo, BA |
40-
40+
| Jayden Seric | @jaydenseric | Independent | Melbourne, AU |
4141

4242
## Agenda
4343

@@ -51,3 +51,12 @@ implementation.
5151
1. Determine volunteers for note taking (1m, Host)
5252
1. Review agenda (2m, Host)
5353
1. Check for [ready for review agenda items](https://github.com/graphql/graphql-js-wg/issues?q=is%3Aissue+is%3Aopen+label%3A%22Ready+for+review+%F0%9F%99%8C%22+sort%3Aupdated-desc) (5m, Host)
54+
1. Discuss [optimal JavaScript module design](https://jaydenseric.com/blog/optimal-javascript-module-design) (15m, Jayden).
55+
- Current state:
56+
- GraphQL.js publishes suboptimal index/"barrel" modules (modules with multiple exports), vs deep importable modules with a single export. E.g:
57+
- Index module: https://unpkg.com/[email protected]/index.js
58+
- Library module: https://app.unpkg.com/[email protected]/files/type/scalars.mjs
59+
- Proposal:
60+
- Move each export (e.g. each scalar) into its own deep-importable single-export module.
61+
- Remove index/"barrel" modules.
62+
- Remove the package main entry-point. This will ensure the ecosystem only imports from GraphQL.js via optimal deep imports.

0 commit comments

Comments
 (0)