mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 09:27:29 +00:00
* refactor(tooling): group remaining scripts by concrete domain owners * fix(tooling): preserve relocated launcher resource roots
14 lines
463 B
TypeScript
14 lines
463 B
TypeScript
import type { Plugin } from 'vite'
|
|
import { removeDevRolldownRuntimeEnv } from '../scripts/development/launch/dev-rolldown-runtime-env.mjs'
|
|
|
|
/** electron-vite starts Electron after the renderer server, so this runs once Rolldown has sized its pools. */
|
|
export function createDevRolldownRuntimeEnvPlugin(): Plugin {
|
|
return {
|
|
name: 'orca-dev-rolldown-runtime-env',
|
|
apply: 'serve',
|
|
config() {
|
|
removeDevRolldownRuntimeEnv(process.env)
|
|
}
|
|
}
|
|
}
|