developit / microbundle

📦 Zero-configuration bundler for tiny modules.
https://npm.im/microbundle
MIT License
8.03k stars 362 forks source link

chore: Silence warnings when using 'node:' protocol #956

Closed rschristian closed 2 years ago

rschristian commented 2 years ago

The current solution for matching builtins doesn't catch imports using the new-ish node: protocol:

Failed to resolve the module node:http imported by src/index.js
Is the module installed? Note:
 ↳ to inline a module into your bundle, install it to "devDependencies".
 ↳ to depend on a module via import/require, install it to "dependencies".

This just adds it to the patterns to match against when the target for Microbundle is Node.

changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: b70d7d01f2a8613456eeecc724f7faf4169ff569

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------- | ----- | | microbundle | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR