MCPcopy
hub / github.com/rollup/rollup / addCommandPluginsToInputOptions

Function addCommandPluginsToInputOptions

cli/run/commandPlugins.ts:8–19  ·  view source on GitHub ↗
(
	inputOptions: InputOptionsWithPlugins,
	command: Record<string, unknown>
)

Source from the content-addressed store, hash-verified

6import { waitForInputPlugin } from './waitForInput';
7
8export async function addCommandPluginsToInputOptions(
9 inputOptions: InputOptionsWithPlugins,
10 command: Record<string, unknown>
11): Promise<void> {
12 if (command.stdin !== false) {
13 inputOptions.plugins.push(stdinPlugin(command.stdin));
14 }
15 if (command.waitForBundleInput === true) {
16 inputOptions.plugins.push(waitForInputPlugin());
17 }
18 await addPluginsFromCommandOption(command.plugin, inputOptions);
19}
20
21export async function addPluginsFromCommandOption(
22 commandPlugin: unknown,

Callers 2

loadConfigFileFunction · 0.90
loadConfigFromCommandFunction · 0.90

Calls 4

stdinPluginFunction · 0.90
waitForInputPluginFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…