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 ({
|
export function buildConfig ({
|
||||||
manifest: manifestPathRelative,
|
manifest: manifestPathRelative,
|
||||||
outDir,
|
outDir,
|
||||||
scriptPlugins = [],
|
plugins = [],
|
||||||
sourcemap,
|
sourcemap,
|
||||||
}: {
|
}: {
|
||||||
manifest: string;
|
manifest: string;
|
||||||
outDir: string;
|
outDir: string;
|
||||||
scriptPlugins: Plugin[];
|
plugins: Plugin[];
|
||||||
sourcemap: boolean | 'inline' | 'hidden';
|
sourcemap: boolean | 'inline' | 'hidden';
|
||||||
}): RollupOptions[] {
|
}): RollupOptions[] {
|
||||||
const manifestPath = resolve(process.cwd(), manifestPathRelative);
|
const manifestPath = resolve(process.cwd(), manifestPathRelative);
|
||||||
|
@ -73,7 +73,7 @@ export function buildConfig ({
|
||||||
format: 'iife' as const,
|
format: 'iife' as const,
|
||||||
sourcemap,
|
sourcemap,
|
||||||
},
|
},
|
||||||
plugins: scriptPlugins,
|
plugins,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue