From dd6322f9c82839e81f7c7b09ff8e99cc03094169 Mon Sep 17 00:00:00 2001 From: alex8088 <244096523@qq.com> Date: Sat, 24 Sep 2022 23:58:10 +0800 Subject: [PATCH] chore: function style --- src/bytecode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bytecode.ts b/src/bytecode.ts index 2b6cc28..70e69f7 100644 --- a/src/bytecode.ts +++ b/src/bytecode.ts @@ -8,7 +8,7 @@ const getBytecodeCompilerPath = (): string => { return path.resolve(process.cwd(), 'node_modules', 'electron-vite', 'bin', 'electron-bytecode.js') } -export const compileToBytecode = (code: string): Promise => { +export function compileToBytecode(code: string): Promise { return new Promise((resolve, reject) => { let data = Buffer.from([])