Skip to content

Commit 6e1a2ae

Browse files
committed
fix(template): drop recharts from vite optimizeDeps include
recharts was only present in the template transitively via appkit-ui's recharts peerDependency, which #473 removes. The template declares no recharts dependency and no template component imports it, so keeping it in optimizeDeps.include would make scaffolded apps fail to start with "Failed to resolve dependency: recharts, present in optimizeDeps.include" once the template syncs to the recharts-free appkit-ui. Signed-off-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
1 parent 97dec85 commit 6e1a2ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

template/client/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default defineConfig({
1616
sourcemap: process.env.NODE_ENV === 'development',
1717
},
1818
optimizeDeps: {
19-
include: ['react', 'react-dom', 'react/jsx-dev-runtime', 'react/jsx-runtime', 'recharts'],
19+
include: ['react', 'react-dom', 'react/jsx-dev-runtime', 'react/jsx-runtime'],
2020
},
2121
resolve: {
2222
alias: {

0 commit comments

Comments
 (0)