rollup / plugins

🍣 The one-stop shop for official Rollup plugins
MIT License
3.57k stars 568 forks source link

chore(node-resolve): remove is-builtin-module #1735

Open 43081j opened 3 weeks ago

43081j commented 3 weeks ago

Node has shipped builtinModules for some time now, so we no longer need a third party package to do this.

Once the engines constraint is bumped in the package.json, we can also move to using the built-in isBuiltin function (available since 16.x).

Rollup Plugin Name: node-resolve

This PR contains:

Are tests included?

Breaking Changes?

43081j commented 3 weeks ago

FYI the engine constraint in here actually specifies 14 or something. Which is why I have used the built in modules list (available in 14), but not isBuiltin (available in 16)

Just to be clear

If we can bump the engine constraint to 16, we could use the built in function

43081j commented 2 weeks ago

any chance we can get this merged? 👀

would be a good to pull it into a few dependents