File tree Expand file tree Collapse file tree
packages/start/src/config/fs-routes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ function treeShakeTransform({ types: t }: typeof Babel): PluginObj<State> {
107107 } ) ;
108108 }
109109 } ,
110- ExportDefaultDeclaration ( exportNamedPath ) {
110+ ExportDefaultDeclaration ( exportNamedPath ) {
111111 if ( state . opts . pick && ! state . opts . pick . includes ( "default" ) ) {
112112 const decl = exportNamedPath . get ( "declaration" ) ;
113113 if ( decl . node ) {
@@ -127,7 +127,7 @@ function treeShakeTransform({ types: t }: typeof Babel): PluginObj<State> {
127127
128128 // Handle: export { foo, bar }
129129 if ( specifiers . length ) {
130- specifiers . forEach ( ( s ) => {
130+ specifiers . forEach ( s => {
131131 const exportedName = t . isIdentifier ( s . node . exported )
132132 ? s . node . exported . name
133133 : s . node . exported . value ;
@@ -158,7 +158,7 @@ function treeShakeTransform({ types: t }: typeof Babel): PluginObj<State> {
158158 }
159159 case "VariableDeclaration" : {
160160 const inner = decl . get ( "declarations" ) ;
161- inner . forEach ( ( d ) => {
161+ inner . forEach ( d => {
162162 if ( d . node . id . type !== "Identifier" ) return ;
163163 const name = d . node . id . name ;
164164 if ( ! state . opts . pick . includes ( name ) ) {
You can’t perform that action at this time.
0 commit comments