This change removes the duplicated .vue extension when creating a component and using a name with an extension.
โ Type of change
[ ] ๐ Documentation (updates to the documentation, readme or JSdoc annotations)
[ ] ๐ Bug fix (a non-breaking change that fixes an issue)
[x] ๐ Enhancement (improving an existing functionality like performance)
[ ] โจ New feature (a non-breaking change that adds functionality)
[ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
[ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
When creating a new component named MyComponent.vue, Nuxtr would create a file named MyComponent.vue.vue. This PR normalizes the file name before creating the component, removing the duplicate extension.
๐ Linked issue / Discussion
This change removes the duplicated
.vue
extension when creating a component and using a name with an extension.โ Type of change
๐ Description
When creating a new component named
MyComponent.vue
, Nuxtr would create a file namedMyComponent.vue.vue
. This PR normalizes the file name before creating the component, removing the duplicate extension.๐ Checklist