chore: move native-image.ts back into common (#30838)
This commit is contained in:
parent
4a2f41ee58
commit
8b7631228f
7 changed files with 6 additions and 10 deletions
|
@ -1,6 +1,7 @@
|
|||
// Common modules, please sort alphabetically
|
||||
export const commonModuleList: ElectronInternal.ModuleEntry[] = [
|
||||
{ name: 'clipboard', loader: () => require('./clipboard') },
|
||||
{ name: 'nativeImage', loader: () => require('./native-image') },
|
||||
{ name: 'shell', loader: () => require('./shell') },
|
||||
// The internal modules, invisible unless you know their names.
|
||||
{ name: 'deprecate', loader: () => require('./deprecate'), private: true }
|
||||
|
|
3
lib/common/api/native-image.ts
Normal file
3
lib/common/api/native-image.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
const { nativeImage } = process._linkedBinding('electron_common_native_image');
|
||||
|
||||
export default nativeImage;
|
Loading…
Add table
Add a link
Reference in a new issue