mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-18 11:16:35 +08:00
chore: remove globalThis.__dirname
This commit is contained in:
parent
7d5708d600
commit
f06b279554
@ -1,10 +1,11 @@
|
||||
import { app, BrowserWindow, shell, ipcMain } from 'electron'
|
||||
import { createRequire } from 'node:module'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import path from 'node:path'
|
||||
import os from 'node:os'
|
||||
|
||||
globalThis.__filename = fileURLToPath(import.meta.url)
|
||||
globalThis.__dirname = path.dirname(__filename)
|
||||
const require = createRequire(import.meta.url)
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||
|
||||
// The built directory structure
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user