Support for bundlers #290
azarenkovgd
started this conversation in
General
Replies: 1 comment 1 reply
-
I don't know if this issue might have some helpful suggestions: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use rollup to bundle my backend code into one js file, then I deploy it, without any additional node modules. There is a problem with this package - it requires some ".node" dependency (sorry for some wrong terminology, I do now know how to explain it better). Path to this dependency is resolved at a runtime. Seems to be, it happens in the file https://github.com/kriszyp/lmdb-js/blob/master/native.js, here:
Is it possible to allow user to supply path to native addon?
Code could look something like that:
I tried studying
node-gyp-build-optional-packages
package, but seems to be, there is no way to solve this problem "official" way. Hope I am wrong.Beta Was this translation helpful? Give feedback.
All reactions