Skip to content

Commit 0da494b

Browse files
committed
format
1 parent 483adb4 commit 0da494b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/start/src/config/fs-routes/tree-shake.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)) {

0 commit comments

Comments
 (0)