enhanced-resolve icon indicating copy to clipboard operation
enhanced-resolve copied to clipboard

Support `node:http` etc.

Open vjpr opened this issue 2 years ago • 3 comments

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

Workaround

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

vjpr avatar Sep 16 '21 22:09 vjpr

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

alexander-akait avatar Sep 17 '21 11:09 alexander-akait

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.

vjpr avatar Sep 17 '21 21:09 vjpr

maybe this is out of scope for this package

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

pauldraper avatar Oct 19 '21 02:10 pauldraper