Skip to content

Commit 960c250

Browse files
committed
chore: comment
1 parent 0dff1ee commit 960c250

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/definePage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export function definePageTransform({
3535
const isExtractingDefinePage = MACRO_DEFINE_PAGE_QUERY.test(id)
3636

3737
if (!code.includes(MACRO_DEFINE_PAGE)) {
38+
// avoid having an invalid module that is just empty
39+
// https://github.com/posva/unplugin-vue-router/issues/338
3840
return isExtractingDefinePage ? 'export default {}' : undefined
3941
}
4042

0 commit comments

Comments
 (0)