unjs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.unjs.io
MIT License
5.58k stars 482 forks source link

Support bundling `.node` modules #1408

Open cyperdark opened 1 year ago

cyperdark commented 1 year ago

Environment

Nodejs: 16.20.0 Nitropack: 2.5.2 rosu-pp: 0.9.4

Reproduction

  1. npx giget@latest nitro oops
  2. npm i rosu-pp
  3. import module somewhere in project
  4. npm run dev

Describe the bug

image

Look like this import cause this issue: image

source code

Additional context

No response

Logs

No response

cyperdark commented 10 months ago

Hello, any updates on this one? maybe there a work around

cyperdark commented 2 months ago

@pi0 Hello, it's been over a 7 months, any news regarding this one?

pi0 commented 2 months ago

Hi dear @cyperdark. Bundling .node dependencies is not supported yet. You are welcome to contribute and add support (it should be via rollup plugins)