main: dirname for esm supported
This commit is contained in:
1 parent
92498f4465
commit
52ffc48cde
1 file changed
+4
-1
@@ -1,5 +1,8 @@
|
||||
import { join } from 'path'
|
||||
import { join, dirname } from 'path'
|
||||
import { name, version } from '../../../package.json'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url))
|
||||
|
||||
export default class Constants {
|
||||
// Display app name (uppercase first letter)
|
||||
|
||||
Reference in new issue
Block a user