mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-05-16 12:47:40 +08:00
reduce production package size by set node-linker=hoisted
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import * as path from 'node:path';
|
||||
import type TypeormType from 'typeorm'
|
||||
const isRunFromUi = Boolean(process.env.MAIN_BOSSGEEKGO_UI_RUN_MODE)
|
||||
const isUiDev = process.env.NODE_ENV === 'development'
|
||||
|
||||
export function requireTypeorm (): typeof TypeormType {
|
||||
export function requireTypeorm () {
|
||||
const importResult = require('typeorm')
|
||||
return importResult
|
||||
}
|
||||
Reference in New Issue
Block a user