Skip to content

A tool to convert .js files with Vue components using 'template' to Vue SFC files

Notifications You must be signed in to change notification settings

Anoesj/vue-js-to-sfc-converter

Repository files navigation

Vue .js file to SFC converter

This tool tries to convert a Vue .js file to a .vue file. It tries to find a template property in a Vue component in a .js file and moves it to the top of the SFC (in a <template> tag) while wrapping the rest in a <script> tag.