chore: rename built-in modules to bindings to match naming update in node (#37182)

This commit is contained in:
Milan Burda 2023-02-09 02:31:38 +01:00 committed by GitHub
parent 8b380ee2f2
commit 35a9e67dba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 103 additions and 100 deletions

View file

@ -138,7 +138,7 @@ interface Process {
At the very bottom of your `api_name.cc` file:
```cpp title='api_name.cc'
NODE_LINKED_MODULE_CONTEXT_AWARE(electron_browser_{api_name},Initialize)
NODE_LINKED_BINDING_CONTEXT_AWARE(electron_browser_{api_name},Initialize)
```
In your [`shell/common/node_bindings.cc`](https://github.com/electron/electron/blob/main/shell/common/node_bindings.cc) file, add your node binding name to Electron's built-in modules.