All in npm-esm-packages
This commit is contained in:
parent
59b84ed35a
commit
1b8fe7cf9c
|
@ -2,8 +2,7 @@ import { app, BrowserWindow, shell } from 'electron'
|
|||
import { release } from 'os'
|
||||
import { join } from 'path'
|
||||
import './samples/electron-store'
|
||||
import './samples/node-fetch'
|
||||
import './samples/execa'
|
||||
import './samples/npm-esm-packages'
|
||||
|
||||
// Disable GPU Acceleration for Windows 7
|
||||
if (release().startsWith('6.1')) app.disableHardwareAcceleration()
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
import fetch from 'node-fetch'
|
||||
|
||||
(async () => {
|
||||
const body = await (await fetch('https://github.com/')).text()
|
||||
|
||||
// console.log(body)
|
||||
})()
|
|
@ -2,5 +2,6 @@ import { execa } from 'execa'
|
|||
|
||||
(async () => {
|
||||
const { stdout } = await execa('echo', ['unicorns'])
|
||||
console.log(stdout)
|
||||
|
||||
// console.log(stdout) // unicorns
|
||||
})()
|
Loading…
Reference in New Issue