We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
'fs/promises' can be deleted as builtin module
(!) Unresolved dependencies https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency fs/promises (imported by xxx.ts)
plugins/packages/node-resolve/src/index.js
Line 169 in 4c5e8fd
is-builtin-module lib: https://github.com/sindresorhus/is-builtin-module isBuiltinModule('fs/promises'); //=> true
isBuiltinModule('node:fs/promises'); //=> true
The text was updated successfully, but these errors were encountered:
Good catch! Would you be willing to contribute a PR to replace builtin-modules with is-builtin-module?
builtin-modules
is-builtin-module
Sorry, something went wrong.
fix(node-resolve): support node: protocol
node:
206afaa
Imports with the [`node:` protocol](https://nodejs.org/api/esm.html#node-imports) are currently undetected by this plugin. Switch to using [is-builtin-module](https://github.com/sindresorhus/is-builtin-module), which handles this protocol and also submodule imports like `fs/promises`. Functionality is otherwise identical. Resolves rollup#1120.
I have just coincidentally had the same problem and opened a PR to fix: #1124
6442015
a7b56eb
3.x
No branches or pull requests
Expected Behavior
'fs/promises' can be deleted as builtin module
Actual Behavior
(!) Unresolved dependencies
https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency
fs/promises (imported by xxx.ts)
Additional Information
plugins/packages/node-resolve/src/index.js
Line 169 in 4c5e8fd
is-builtin-module lib: https://github.com/sindresorhus/is-builtin-module
isBuiltinModule('fs/promises');
//=> true
isBuiltinModule('node:fs/promises');
//=> true
The text was updated successfully, but these errors were encountered: