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
rollup uses is-builtin-module here: https://github.com/rollup/plugins/blob/9e7f576f33e26d65e9f2221d248a2e000923e03f/packages/node-resolve/src/index.js#L193
is-builtin-module
it has an engine constraint of >=14 which means we can't use isBuiltin from node itself.
>=14
isBuiltin
however, we can use builtinModules with a simple string replace:
builtinModules
import {builtinModules} from 'node:module'; const name = '...'; builtinModules.includes(name.replace('node:', ''));
The text was updated successfully, but these errors were encountered:
tracked in rollup/plugins#1735
Sorry, something went wrong.
rollup/plugins#1735 is now merged
No branches or pull requests
rollup uses
is-builtin-module
here:https://github.com/rollup/plugins/blob/9e7f576f33e26d65e9f2221d248a2e000923e03f/packages/node-resolve/src/index.js#L193
it has an engine constraint of
>=14
which means we can't useisBuiltin
from node itself.however, we can use
builtinModules
with a simple string replace:The text was updated successfully, but these errors were encountered: