Skip to content

Commit 207356f

Browse files
Update roadmap (#92)
1 parent de5aa44 commit 207356f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ This team is spun off from the [Modules team](https://github.com/nodejs/modules)
3030

3131
- [x] Implement chaining as described in the [design](doc/design/proposal-chaining-middleware.md), where the `default<hookName>` becomes `next` and references the next registered hook in the chain. https://github.com/nodejs/node/pull/42623
3232

33-
- [ ] Convert `resolve` from async to sync https://github.com/nodejs/node/pull/43363
34-
35-
- [ ] Add an async `resolve` to [`module`](https://nodejs.org/api/module.html) module
36-
3733
- [ ] Add helper/utility functions (eg `getPackageType()`) to [`module`](https://nodejs.org/api/module.html) module
3834

3935
- [ ] Move loaders off thread
@@ -42,4 +38,12 @@ This team is spun off from the [Modules team](https://github.com/nodejs/modules)
4238

4339
- [ ] First-class support for [import maps](https://github.com/WICG/import-maps) that doesn’t require a custom loader.
4440

41+
We hope that moving loaders off thread will allow us to preserve an async `resolve` hook while supporting the sync `import.meta.resolve` API. If that turns out to be unachievable, however, then:
42+
43+
- [ ] Convert `resolve` from async to sync https://github.com/nodejs/node/pull/43363
44+
45+
- [ ] Add an async `resolve` to [`module`](https://nodejs.org/api/module.html) module
46+
47+
- [ ] Consider an API for async operations before resolution begins, such as `preImport` https://github.com/nodejs/loaders/pull/89
48+
4549
After this, we should get user feedback regarding the developer experience; for example, is too much boilerplate required? Should we have a separate `transform` hook? And so on. We should also investigate and potentially implement the [technical improvements](doc/use-cases.md#improvements) on our to-do list.

0 commit comments

Comments
 (0)