Skip to content

Conversation

@roryabraham
Copy link
Contributor

@roryabraham roryabraham commented Jun 8, 2024

Hi 👋🏼

First PR in this repo so I'm open to feedback 🙂

This PR is pretty simple - it adds the https://github.com/danielgindi/rollup-plugin-natives rollup plugin to this repo, such that it can handle projects with dependencies that include native node modules as well as pure-JS modules.

An easy way to test this is using this branch in your npm link package.

Chokidar depends on a fsevents native node plugin. If you add it to your link package and use it, you'll get an error when pnpm prepack.

@roryabraham
Copy link
Contributor Author

I'll throw up some testing steps in a little bit, but spoiler alert I tested this with https://github.com/privatenumber/link when I was trying to add chokidar (which it sounds we might not want to do anyways 🙃)

@privatenumber privatenumber force-pushed the roryabraham-handleNativeNodePlugins branch from 2448b0f to e5ca7d1 Compare October 2, 2025 17:10
@privatenumber privatenumber changed the title Handle native node plugins feat: support native .node bundling Oct 2, 2025
@privatenumber privatenumber merged commit e901abd into privatenumber:master Oct 2, 2025
2 checks passed
@privatenumber
Copy link
Owner

🎉 This PR is included in version 2.17.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants