We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0da494b commit 4b7c29aCopy full SHA for 4b7c29a
1 file changed
packages/start/src/config/fs-routes/tree-shake.ts
@@ -164,7 +164,7 @@ function treeShakeTransform({ types: t }: typeof Babel): PluginObj<State> {
164
if (!state.opts.pick.includes(name)) {
165
// Keep the variable, just not exported
166
// Replace export const foo = ... with const foo = ...
167
- exportNamedPath.replaceWith(decl.node);
+ exportNamedPath.replaceWith(decl.node!);
168
}
169
});
170
break;
0 commit comments