lukeed / lukeed/loadr

Multiple ESM loaders don't work

Open
#2 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
51
Forks
1
PR merge metrics
No merged PRs in 30d

Description

I think the current experimental ESM loaders don't currently support specifying multiple loaders by repeating the flag (https://github.com/nodejs/node/issues/39913) so the approach of this package for specifying multiple loaders doesn't work yet.

Was it intentional that it doesn't currently work and it was implemented this way in preparation for when specifying multiple loaders is supported?

By the way, I found [`@node-loader/core`](https://www.npmjs.com/package/@node-loader/core), which seems to be a loader that chains multiple loaders internally. Might be of interest!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reviewing how the package handles repeated Node ESM loader flags and compare that behavior with Node issue #39913 and the linked chaining approach. Done means either supporting multiple loaders when Node permits it or documenting the intentional limitation and expected usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.