From e4782230169f8064e57f9de243f26e8ad2d7fff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Mon, 7 Nov 2022 16:22:30 +0100 Subject: [PATCH] Test enabling pure function on styled-components --- site/vite.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/vite.config.ts b/site/vite.config.ts index f7f8863a2..155f0b5bb 100644 --- a/site/vite.config.ts +++ b/site/vite.config.ts @@ -51,7 +51,9 @@ export default defineConfig(({ command, mode }) => ({ preventAssignment: false, }), react({ - babel: { plugins: ['babel-plugin-styled-components'] }, + babel: { + plugins: [['babel-plugin-styled-components', { pure: true }]], + }, }), yaml(), shimReactPdf(),