fix: restore working of babel-plugin-styled-components (#6140)
This commit is contained in:
@@ -48,6 +48,27 @@ export default () =>
|
||||
// https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#readme
|
||||
react({
|
||||
babel: {
|
||||
env: {
|
||||
production: {
|
||||
plugins: [
|
||||
[
|
||||
"babel-plugin-styled-components",
|
||||
{
|
||||
displayName: false,
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
[
|
||||
"babel-plugin-styled-components",
|
||||
{
|
||||
displayName: true,
|
||||
fileName: false,
|
||||
},
|
||||
],
|
||||
],
|
||||
parserOpts: {
|
||||
plugins: ["decorators-legacy", "classProperties"],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user