mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
docs: use node: imports for node core modules (#39681)
docs: use `node:` imports for node builtin modules
This commit is contained in:
@@ -126,7 +126,7 @@ following lines:
|
||||
|
||||
```javascript
|
||||
const { BrowserWindow, nativeImage } = require('electron')
|
||||
const path = require('path')
|
||||
const path = require('node:path')
|
||||
|
||||
const win = new BrowserWindow()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user