rename scriptPlugins to plugins
This commit is contained in:
parent
0105e1ab12
commit
a2cb7ec931
6
index.ts
6
index.ts
|
@ -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,
|
||||
};
|
||||
}),
|
||||
|
||||
|
|
Loading…
Reference in a new issue