Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This test case checks whether the "meaninglessFileNames" option is applied properly to the "code.js" file and its parent directory name is being used instead of its file name.
- Loading branch information
1 parent
b99804c
commit da023c4
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"../../../src", | ||
{ | ||
"meaninglessFileNames": ["code"], | ||
"transpileTemplateLiterals": false, | ||
"ssr": true | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import styled from "styled-components"; | ||
|
||
const Test = styled.div`color: red;`; | ||
const before = styled.div`color: blue;`; | ||
styled.div``; | ||
export default styled.button``; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import styled from "styled-components"; | ||
const Test = styled.div.withConfig({ | ||
displayName: "use-directory-name__Test", | ||
componentId: "sc-193y009-0" | ||
})`color:red;`; | ||
const before = styled.div.withConfig({ | ||
displayName: "use-directory-name__before", | ||
componentId: "sc-193y009-1" | ||
})`color:blue;`; | ||
styled.div.withConfig({ | ||
displayName: "use-directory-name", | ||
componentId: "sc-193y009-2" | ||
})``; | ||
export default styled.button.withConfig({ | ||
displayName: "use-directory-name", | ||
componentId: "sc-193y009-3" | ||
})``; |