chore: function style
This commit is contained in:
parent
8556a45cab
commit
dd6322f9c8
|
@ -8,7 +8,7 @@ const getBytecodeCompilerPath = (): string => {
|
||||||
return path.resolve(process.cwd(), 'node_modules', 'electron-vite', 'bin', 'electron-bytecode.js')
|
return path.resolve(process.cwd(), 'node_modules', 'electron-vite', 'bin', 'electron-bytecode.js')
|
||||||
}
|
}
|
||||||
|
|
||||||
export const compileToBytecode = (code: string): Promise<Buffer> => {
|
export function compileToBytecode(code: string): Promise<Buffer> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let data = Buffer.from([])
|
let data = Buffer.from([])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue