rename scriptPlugins to plugins

This commit is contained in:
Erin 2023-07-28 08:00:39 -04:00
parent 0105e1ab12
commit a2cb7ec931

View file

@ -10,12 +10,12 @@ import {type RollupOptions, type Plugin} from 'rollup';
export function buildConfig ({
manifest: manifestPathRelative,
outDir,
scriptPlugins = [],
plugins = [],
sourcemap,
}: {
manifest: string;
outDir: string;
scriptPlugins: Plugin[];
plugins: Plugin[];
sourcemap: boolean | 'inline' | 'hidden';
}): RollupOptions[] {
const manifestPath = resolve(process.cwd(), manifestPathRelative);
@ -73,7 +73,7 @@ export function buildConfig ({
format: 'iife' as const,
sourcemap,
},
plugins: scriptPlugins,
plugins,
};
}),