We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dff1ee commit 960c250Copy full SHA for 960c250
src/core/definePage.ts
@@ -35,6 +35,8 @@ export function definePageTransform({
35
const isExtractingDefinePage = MACRO_DEFINE_PAGE_QUERY.test(id)
36
37
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
40
return isExtractingDefinePage ? 'export default {}' : undefined
41
}
42
0 commit comments