From 5c3b7f19960c2715d2600f67c784cd5dfdd6b2d0 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 28 Mar 2023 18:43:59 +0200 Subject: [PATCH] chore: hide rollup warn --- build.config.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/build.config.ts b/build.config.ts index 58dc9cf1..0855818d 100644 --- a/build.config.ts +++ b/build.config.ts @@ -1,7 +1,15 @@ -import { defineBuildConfig } from 'unbuild' +import { defineBuildConfig } from "unbuild"; export default defineBuildConfig({ rollup: { - inlineDependencies: true - } -}) + inlineDependencies: true, + }, + hooks: { + "rollup:options"(_, options) { + for (const output of options.output) { + // @ts-ignore + output.exports = "named"; + } + }, + }, +});