Skip to content

Commit

Permalink
fix(cli): dedupe styled-components in vite config (#7310)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricokahler authored Aug 5, 2024
1 parent e5563b6 commit e82e815
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/sanity/src/_internal/cli/server/getViteConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export async function getViteConfig(options: ViteOptions): Promise<InlineConfig>
logLevel: mode === 'production' ? 'silent' : 'info',
resolve: {
alias: getAliases({monorepo, sanityPkgPath}),
dedupe: ['styled-components'],
},
define: {
// eslint-disable-next-line no-process-env
Expand Down

0 comments on commit e82e815

Please sign in to comment.