Commit 7e199d4
committed
fix(og): include @takumi-rs/core-linux-x64-gnu binary in function bundle
`external_node_modules = ["@takumi-rs/core"]` alone wasn't enough —
Netlify's bundler ships the package and its declared deps but doesn't
trace optional platform-specific deps loaded via napi-rs's runtime
require dispatcher. Confirmed via diagnostic 500 body on the deploy
preview: "Cannot find native binding. npm has a bug related to optional
dependencies".
List the Linux x64 binary package explicitly so the .node file is
included alongside the loader.1 parent 13330a7 commit 7e199d4
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| |||
0 commit comments