aboutsummaryrefslogtreecommitdiffstats
path: root/config/buildConstants.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/buildConstants.js')
-rw-r--r--config/buildConstants.js10
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 @@
1import { readFileSync } from 'fs'; 1import { readFileSync } from 'node:fs';
2import { join } from 'path'; 2import path from 'node:path';
3 3
4import fileURLToDirname from './fileURLToDirname.js'; 4import fileUrlToDirname from './fileUrlToDirname.js';
5 5
6const thisDir = fileURLToDirname(import.meta.url); 6const 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.
10const electronVendorsJson = readFileSync( 10const 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