-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move NAPI_MODULE call to separate file for Node 18+ compatibility.
- Loading branch information
1 parent
bdb72e5
commit a4f9e3d
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package napi | ||
|
||
// #cgo linux LDFLAGS: -Wl,--unresolved-symbols=ignore-all | ||
// #cgo darwin LDFLAGS: -Wl,-undefined,dynamic_lookup | ||
// #include <node_api.h> | ||
// napi_value napiModuleInit(napi_env env, napi_value exports); | ||
// NAPI_MODULE(go_text_template_napi_binding, napiModuleInit) | ||
import "C" |