refactor: load preload script directly as a string (#27546)
This commit is contained in:
parent
fa09183ed1
commit
bc7c290601
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ const getPreloadScript = async function (preloadPath: string) {
|
|||
let preloadSrc = null;
|
||||
let preloadError = null;
|
||||
try {
|
||||
preloadSrc = (await fs.promises.readFile(preloadPath)).toString();
|
||||
preloadSrc = await fs.promises.readFile(preloadPath, 'utf8');
|
||||
} catch (error) {
|
||||
preloadError = error;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue