-
Notifications
You must be signed in to change notification settings - Fork 29
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
Support node native bindary module #236
Comments
It think should copy |
Well... index.js const wsh = require("./lib.node");
console.log(wsh); Output: npx bunchee ./index.js -o ./dist/index.js -f cjs --runtime node
1: MZ�♥♦���@�▼�� �!�☺L�!This program cannot be run in DOS mode.
^
2: $ȿ���������*���ޫ����ޫ����ޫ����ޫ������������������H�����H�����Rich��PEd�♣��d...
3: H�D$0H�
⨯ RollupError: Unexpected character '�' (Note that you need plugins to import files that are not JavaScript) |
c++ native node bindings are currently not supported. currently bunchee only supports javascript. |
Sure! In the future, you can adopt an approach similar to Vercel's ncc by providing a list of assets that includes native bindings's path and content. rollup-plugin-natives is an option too. |
What happens if I want to bundle my project that uses a native module? What happens to the
.node
file?The text was updated successfully, but these errors were encountered: