Skip to content

Commit b0249de

Browse files
committed
fix(types): avoid reserved .vue at the end of name
Fix #3160 .vue is treated as a vue component, so the dts generation tries to match a plugin.vue component that doesn't exist
1 parent 49c0b7a commit b0249de

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/nuxt/src/module.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const module: NuxtModule<ModuleOptions> = defineNuxtModule<ModuleOptions>({
5757
// Add runtime plugin before the router plugin
5858
// https://github.com/nuxt/framework/issues/9130
5959
nuxt.hook('modules:done', () => {
60-
addPlugin(resolve(runtimeDir, 'plugin.vue'))
60+
addPlugin(resolve(runtimeDir, 'plugin'))
6161
addPlugin(resolve(runtimeDir, 'payload-plugin'))
6262
})
6363

0 commit comments

Comments
 (0)