diff options
Diffstat (limited to 'config/buildConstants.js')
-rw-r--r-- | config/buildConstants.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/buildConstants.js b/config/buildConstants.js index 3c55500..dfe2ab0 100644 --- a/config/buildConstants.js +++ b/config/buildConstants.js | |||
@@ -1,14 +1,14 @@ | |||
1 | import { readFileSync } from 'fs'; | 1 | import { readFileSync } from 'node:fs'; |
2 | import { join } from 'path'; | 2 | import path from 'node:path'; |
3 | 3 | ||
4 | import fileURLToDirname from './fileURLToDirname.js'; | 4 | import fileUrlToDirname from './fileUrlToDirname.js'; |
5 | 5 | ||
6 | const thisDir = fileURLToDirname(import.meta.url); | 6 | const thisDir = fileUrlToDirname(import.meta.url); |
7 | 7 | ||
8 | // We import this from a vite config, where top-level await is not available (es2021), | 8 | // We import this from a vite config, where top-level await is not available (es2021), |
9 | // so we have to use the synchronous filesystem API. | 9 | // so we have to use the synchronous filesystem API. |
10 | const electronVendorsJson = readFileSync( | 10 | const electronVendorsJson = readFileSync( |
11 | join(thisDir, '../.electron-vendors.cache.json'), | 11 | path.join(thisDir, '../.electron-vendors.cache.json'), |
12 | 'utf8', | 12 | 'utf8', |
13 | ); | 13 | ); |
14 | 14 | ||