Test enabling pure function on styled-components

add-axe-puppeteer
Jérémy Rialland 2022-11-07 16:22:30 +01:00 committed by Jérémy Rialland
parent 83fadbeda2
commit e478223016
1 changed files with 3 additions and 1 deletions

View File

@ -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(),