Skip to content

Commit

Permalink
chore: tweak external to improve startup
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Jul 6, 2024
1 parent 1355bb3 commit 9514622
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,27 @@ import next from 'next/vite';
import { defineConfig } from 'vite';

export default defineConfig({
plugins: [next()],
plugins: [
next({
plugins: [
{
name: 'config',
apply: 'serve',
config() {
return {
ssr: {
optimizeDeps: {
include: [
'@heroicons/react/24/outline',
'@heroicons/react/24/solid',
],
},
external: ['date-fns', 'dinero.js'],
},
};
},
},
],
}),
],
});

0 comments on commit 9514622

Please sign in to comment.