File tree Expand file tree Collapse file tree
test/fixtures/sort-named-export Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,7 +78,10 @@ function stylexKeySort(
7878 return ;
7979 }
8080
81- for ( const node of program . body ) {
81+ for ( let node of program . body ) {
82+ if ( node . type === 'ExportNamedDeclaration' && node . declaration ) {
83+ node = node . declaration ;
84+ }
8285 if ( node . type !== 'VariableDeclaration' ) {
8386 continue ;
8487 }
Original file line number Diff line number Diff line change 1+ import * as stylex from '@stylexjs/stylex' ;
2+ export const styles = stylex . create ( {
3+ foo : {
4+ display : 'flex' ,
5+ borderColor : 'red' ,
6+ alignItems : 'center' ,
7+ } ,
8+ } ) ;
Original file line number Diff line number Diff line change 1+ import * as stylex from '@stylexjs/stylex' ;
2+ export const styles = stylex . create ( {
3+ foo : {
4+ alignItems : 'center' ,
5+ borderColor : 'red' ,
6+ display : 'flex' ,
7+ } ,
8+ } ) ;
You can’t perform that action at this time.
0 commit comments