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
|
@ -1333,7 +1333,7 @@ application name. For example:
|
|||
|
||||
``` js
|
||||
const { app } = require('electron')
|
||||
const path = require('path')
|
||||
const path = require('node:path')
|
||||
|
||||
const appFolder = path.dirname(process.execPath)
|
||||
const updateExe = path.resolve(appFolder, '..', 'Update.exe')
|
||||
|
@ -1404,7 +1404,7 @@ Returns `Function` - This function **must** be called once you have finished acc
|
|||
|
||||
```js
|
||||
const { app, dialog } = require('electron')
|
||||
const fs = require('fs')
|
||||
const fs = require('node:fs')
|
||||
|
||||
let filepath
|
||||
let bookmark
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue