===コード===
----
*オブジェクトの分割代入====mainn.js====
<pre>
const { app, BrowserWindow} = require('electron');
function createWindow() {
let win = new BrowserWindow({
width: 400,
height: 200,
webPreference: {
nodeIntegration: true
}
});
win.loadFile('index.html');
}
app.whenReady().then(createWindow);
</pre>
=====オブジェクトの分割代入=====
const { app, BrowserWindow} = require('electron');
=====Node機能の統合=====
*trueでNode.jsの機能を利用できるようになる
nodeIntegration: true
====app====
----