MCPcopy
hub / github.com/vitejs/vite / cleanBuilderCLIOptions

Function cleanBuilderCLIOptions

packages/vite/src/node/cli.ts:146–152  ·  view source on GitHub ↗

* removing builder flags before passing as command specific sub-configs

(
  options: Options,
)

Source from the content-addressed store, hash-verified

144 * removing builder flags before passing as command specific sub-configs
145 */
146function cleanBuilderCLIOptions<Options extends BuilderCLIOptions>(
147 options: Options,
148): Omit<Options, keyof BuilderCLIOptions> {
149 const ret = { ...options }
150 delete ret.app
151 return ret
152}
153
154/**
155 * host may be a number (like 0), should convert to string

Callers 1

cli.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected