Skip to content

Commit 4b7c29a

Browse files
committed
fix type error
1 parent 0da494b commit 4b7c29a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function treeShakeTransform({ types: t }: typeof Babel): PluginObj<State> {
164164
if (!state.opts.pick.includes(name)) {
165165
// Keep the variable, just not exported
166166
// Replace export const foo = ... with const foo = ...
167-
exportNamedPath.replaceWith(decl.node);
167+
exportNamedPath.replaceWith(decl.node!);
168168
}
169169
});
170170
break;

0 commit comments

Comments
 (0)