docs: use node:
imports for node core modules (#39681)
docs: use `node:` imports for node builtin modules
This commit is contained in:
parent
2182202e8e
commit
b8ac798344
23 changed files with 39 additions and 39 deletions
|
@ -136,7 +136,7 @@ Finally, the `main.js` file represents the main process and contains the actual
|
|||
|
||||
```js
|
||||
const { app, BrowserWindow, ipcMain, nativeTheme } = require('electron')
|
||||
const path = require('path')
|
||||
const path = require('node:path')
|
||||
|
||||
const createWindow = () => {
|
||||
const win = new BrowserWindow({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue