Argument of type '(config: any) => { build: { minify: boolean; target: string; outDir: string; lib: { entry: string[]; formats: string[]; fileName: (format: any) => string; }; rollupOptions: { external: string[]; }; }; define: { ...; }; plugins: any[]; }' is not assignable to parameter of type 'UserConfigExport'.