mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
docs: use node: imports for node core modules (#39681)
docs: use `node:` imports for node builtin modules
This commit is contained in:
@@ -184,7 +184,7 @@ allowing events such as `mouseleave` to be emitted:
|
||||
|
||||
```javascript title='main.js'
|
||||
const { BrowserWindow, ipcMain } = require('electron')
|
||||
const path = require('path')
|
||||
const path = require('node:path')
|
||||
|
||||
const win = new BrowserWindow({
|
||||
webPreferences: {
|
||||
|
||||
Reference in New Issue
Block a user