-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot bundle .node files #14289
Comments
|
This issue is preventing me from using many modules. No workaround or package has worked. |
I managed to bundle nodejs-polars using this config but it's incredibly hacky. |
Well, that's one hell of a hack. But I'll have to study and use it I guess. Thank you so much. Resolving .node files should be a feature in Vite. |
The same problem occurs with I have confirmed that it works by adding the following settings to vite: {
optimizeDeps: {
exclude: ["fsevents"],
},
}, Error log
|
|
|
We've managed to get |
Are there any plans on this one? Even though @goastler shared a nice blog, it doesn't solve anything for the general public. |
The handling of Further, there's more complications with files other than tldr; probably better for someone who knows more about these files to implement a plugin / build support in vite |
Describe the bug
I am trying to create a server side bundle that includes packages containing .node files. In this specific instance, the problematic package is nodejs-polars.
I have tried various plugins to resolve this but none of them seem to work.
My config is as follows:
Reproduction
https://stackblitz.com/edit/vitejs-vite-xp1ggj?file=vite.config.ts,package.json&terminal=dev
Steps to reproduce
Run
vite build --config vite.config.ts
System Info
The text was updated successfully, but these errors were encountered: