Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of loaders in the wild today #8

Closed
cspotcode opened this issue May 26, 2021 · 7 comments · Fixed by #11
Closed

List of loaders in the wild today #8

cspotcode opened this issue May 26, 2021 · 7 comments · Fixed by #11

Comments

@cspotcode
Copy link
Contributor

cspotcode commented May 26, 2021

The goal of this issue is to track a list of loaders used in the wild today. Eventually, we will need to decide how loaders compose and interop. It will be helpful to keep track of what loaders are doing today so we understand how to support their use-cases.

This list is very short to start, but I'll do my best to ask around in forums and mention this issue to the authors.

Yarn2 PnP

ts-node

@istanbuljs/esm-loader-hook

  • NPM
  • I don't know if this is commonly used. I need to ask the authors

Jest

multiloader

quibble

babel-register-esm

@cspotcode
Copy link
Contributor Author

I should also add to this list CommonJS loaders that cannot be implemented as ESM loaders, because they indicate features which should be added to the ESM loader APIs.

@giltayar
Copy link
Contributor

giltayar commented May 28, 2021

The quibble loader, which is used by the mocking library testdouble for mocking ESM: https://github.com/testdouble/quibble.

Used in "production" by a variety of developers.

Accompanying article describing how it works: https://dev.to/giltayar/mock-all-you-want-supporting-es-modules-in-the-testdouble-js-mocking-library-3gh1

@giltayar
Copy link
Contributor

babel-register-esm: https://github.com/giltayar/babel-register-esm, which is a loader we use at our company that transpiles source code according to the babel configuration.

@GeoffreyBooth
Copy link
Member

Do you mind opening a PR to add this info to https://github.com/nodejs/loaders/blob/main/doc/resources.md?

@cspotcode
Copy link
Contributor Author

Yes, I'll do that, I didn't notice that list before creating this PR. My mistake.

@giltayar
Copy link
Contributor

Of course. Although I did notice you put my blog post in there. :-)

@giltayar
Copy link
Contributor

PR #10 for babel-register-esm

cspotcode added a commit to cspotcode/loaders that referenced this issue Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants