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

Support node:http etc. #303

Open
vjpr opened this issue Sep 16, 2021 · 3 comments
Open

Support node:http etc. #303

vjpr opened this issue Sep 16, 2021 · 3 comments

Comments

@vjpr
Copy link

vjpr commented Sep 16, 2021

https://nodejs.org/api/esm.html#esm_node_imports

Workaround

https://github.com/sindresorhus/is-builtin-module

@alexander-akait
Copy link
Member

We already supports this in webpack, what do you mean?

@vjpr
Copy link
Author

vjpr commented Sep 17, 2021

When using enhanced-resolve, it tries to locate the 'http' package but it should be ignored because it's a built-in. But maybe this is out of scope for this package.

@pauldraper
Copy link

maybe this is out of scope for this package

If require.resolve does it, it's not out of scope.

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

No branches or pull requests

3 participants