Files
orca/config/build-plugins/dev-rolldown-runtime-env.ts
T
Neil 6bb2e13c35 refactor(tooling): organize remaining scripts by domain owners (#38407)
* refactor(tooling): group remaining scripts by concrete domain owners

* fix(tooling): preserve relocated launcher resource roots
2026-11-05 00:29:16 -08:00

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)
}
}
}