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
|
// https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#readme
|
||||||
react({
|
react({
|
||||||
babel: {
|
babel: {
|
||||||
|
env: {
|
||||||
|
production: {
|
||||||
|
plugins: [
|
||||||
|
[
|
||||||
|
"babel-plugin-styled-components",
|
||||||
|
{
|
||||||
|
displayName: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
[
|
||||||
|
"babel-plugin-styled-components",
|
||||||
|
{
|
||||||
|
displayName: true,
|
||||||
|
fileName: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
],
|
||||||
parserOpts: {
|
parserOpts: {
|
||||||
plugins: ["decorators-legacy", "classProperties"],
|
plugins: ["decorators-legacy", "classProperties"],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user