feat: define globalThis.__dirname
This commit is contained in:
1 parent
3d4395fb20
commit
031bb81f73
1 file changed
+2
-2
@@ -4,8 +4,8 @@ import { dirname, join } from 'node:path'
|
|||||||
import { fileURLToPath } from 'node:url'
|
import { fileURLToPath } from 'node:url'
|
||||||
import { update } from './update'
|
import { update } from './update'
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url)
|
globalThis.__filename = fileURLToPath(import.meta.url)
|
||||||
const __dirname = dirname(__filename)
|
globalThis.__dirname = dirname(__filename)
|
||||||
|
|
||||||
// The built directory structure
|
// The built directory structure
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in new issue
Block a user