From 5bf2c128fb44f87aded075a5a1c6efb76a7e4a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Sat, 7 Oct 2023 16:59:35 +0200 Subject: [PATCH] fix ts errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- packages/cli/src/lib/builder/plugins.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/lib/builder/plugins.ts b/packages/cli/src/lib/builder/plugins.ts index e68758c1c8..1c1dd1b1e2 100644 --- a/packages/cli/src/lib/builder/plugins.ts +++ b/packages/cli/src/lib/builder/plugins.ts @@ -37,7 +37,7 @@ type ForwardFileImportsOptions = { * path `dist/MyComponent/my-image.png`. The import itself will stay, but be resolved, * resulting in something like `import ImageUrl from './MyComponent/my-image.png'` */ -export function forwardFileImports(options: ForwardFileImportsOptions): Plugin { +export function forwardFileImports(options: ForwardFileImportsOptions) { const filter = createFilter(options.include, options.exclude); // We collect the absolute paths to all files we want to bundle into the @@ -131,5 +131,5 @@ export function forwardFileImports(options: ForwardFileImportsOptions): Plugin { return { ...inputOptions, external }; }, - }; + } satisfies Plugin; }