fix ts errors

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2023-10-07 16:59:35 +02:00
parent 2c5bb01792
commit 5bf2c128fb
+2 -2
View File
@@ -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;
}