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 { release } from 'os'
|
||||||
import { join } from 'path'
|
import { join } from 'path'
|
||||||
import './samples/electron-store'
|
import './samples/electron-store'
|
||||||
import './samples/node-fetch'
|
import './samples/npm-esm-packages'
|
||||||
import './samples/execa'
|
|
||||||
|
|
||||||
// Disable GPU Acceleration for Windows 7
|
// Disable GPU Acceleration for Windows 7
|
||||||
if (release().startsWith('6.1')) app.disableHardwareAcceleration()
|
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 () => {
|
(async () => {
|
||||||
const { stdout } = await execa('echo', ['unicorns'])
|
const { stdout } = await execa('echo', ['unicorns'])
|
||||||
console.log(stdout)
|
|
||||||
|
// console.log(stdout) // unicorns
|
||||||
})()
|
})()
|
Loading…
Reference in New Issue