From 8bb25bdc4a54ce27ebaa95ed0c921718621db3a6 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 29 Jun 2023 17:57:25 -0400 Subject: [PATCH] refactor: override rollup.output --- src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.ts b/src/index.ts index 77ddf0a..3ddae6b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,5 +13,10 @@ export default async function (context: PresetContext): Promise { return { extends: ["presetter-preset-rollup", "@lumeweb/node-library-preset"], supplementaryIgnores: ignores, + supplementaryConfig: { + rollup: { + output: { file: "{output}/index.js", format: "cjs", sourcemap: true }, + }, + }, }; }