Is there a way to automatically transform template strings into SFCs?

I have a bunch of Vue legacy components, a la


<script>
export default {
  ...
  template: `
		<div class="asdf">
  `

I have already moved these components from JS files (Vue.component('component-name', {}), and it appears I haven’t broken anything (of course there are no tests in the project). As a next step, I would like to move the template strings into the <template> tag to get linting/formatting. Is there a way to automatically do this? On a few of the components where I pasted the content inside the backticks into the template tag, it broke the component.