vite-plugin / vite-plugin-native

Supports Node/Electron C/C++ native addons
MIT License
15 stars 1 forks source link

`node-api-dotnet` needs copy extra 'json' files #14

Open reitowo opened 2 months ago

reitowo commented 2 months ago

How to include additional files that the node module implicitly use?

yejimeiming commented 1 month ago

There is no such feature currently, you can solve this problem by some copy plugins. If you need this feature, I hope you can provide a practical use case and we will evaluate the necessity of this feature. :)

reitowo commented 1 month ago

node-api-dotnet enables .NET assembilies to be run under node environment. It wants to load a host native node plugin and it needs specific files besides it.

In fact I have tried copy manually but it seems webpack also breaks the original directory structure, causing more problem when finding dependencies (probably cwd?). So it will be nice if you have time to take that repo a look :)