-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add failing test case #364
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test/fixtures |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"../../../src", | ||
{ | ||
"fileName": false, | ||
"transpileTemplateLiterals": false, | ||
"ssr": true, | ||
"topLevelImportPaths": [ | ||
"@mui/material", | ||
"@mui/material/*", | ||
"@mui/system", | ||
"@mui/styled-engine-sc" | ||
] | ||
} | ||
], | ||
["@babel/plugin-proposal-class-properties", { "loose": true }] | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { styled as matStyled } from '@mui/material/styles' | ||
import sc from '@mui/material/styles' | ||
|
||
const Test1 = matStyled('div')({ | ||
width: '100%', | ||
}) | ||
const Test2 = sc('div')({ | ||
width: '100%', | ||
}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { styled as matStyled } from '@mui/material/styles'; | ||
import sc from '@mui/material/styles'; | ||
const Test1 = matStyled('div').withConfig({ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you really want it to transform There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We didn't want to do this in v4, because the |
||
displayName: 'Test1', | ||
componentId: 'sc-2jen0y-0', | ||
})({ | ||
width: '100%' | ||
}); | ||
const Test2 = sc('div').withConfig({ | ||
displayName: 'Test2', | ||
componentId: 'sc-2jen0y-1', | ||
})({ | ||
width: '100%' | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW at HEAD right now this doesn't work. You need a regex. I have a PR to change this to picomatch