Many native packages use prebuilds to supply multiple versions of .node files compiled for different platforms and architectures. This package is not copying over the prebuilds from packages that use them, so the packages fail to load. Packages often use node-gyp-build as a way of determining which prebuilt .node file to load based on the environment. node-gyp-build is failing to find the corresponding .node file because vite-plugin-native isn't copying the prebuilds folder to the output.
Many native packages use prebuilds to supply multiple versions of .node files compiled for different platforms and architectures. This package is not copying over the prebuilds from packages that use them, so the packages fail to load. Packages often use
node-gyp-buildas a way of determining which prebuilt .node file to load based on the environment.node-gyp-buildis failing to find the corresponding .node file becausevite-plugin-nativeisn't copying theprebuildsfolder to the output.