style: 📝 update

This commit is contained in:
viarotel 2023-10-17 18:37:14 +08:00
parent 554d7ae22c
commit f6adfe06c0

View File

@ -2,6 +2,7 @@ import { resolve } from 'node:path'
import { contextBridge } from 'electron' import { contextBridge } from 'electron'
export const isPackaged = !process.resourcesPath.includes('node_modules') export const isPackaged = !process.resourcesPath.includes('node_modules')
// export const isPackaged = !process.execPath.includes('node_modules')
export const extraResolve = value => export const extraResolve = value =>
isPackaged isPackaged