refactor: override rollup.output

This commit is contained in:
Derrick Hammer 2023-06-29 17:57:25 -04:00
parent 86cfb65ccd
commit 8bb25bdc4a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -13,5 +13,10 @@ export default async function (context: PresetContext): Promise<PresetAsset> {
return {
extends: ["presetter-preset-rollup", "@lumeweb/node-library-preset"],
supplementaryIgnores: ignores,
supplementaryConfig: {
rollup: {
output: { file: "{output}/index.js", format: "cjs", sourcemap: true },
},
},
};
}