Subscribe on changes!

fix: crash when importing component with no script tag

avatar
May 4th 2020

Fix a crash when importing a vue component with no script tag. It also fixes the tests.

This was caused by a parsing error:

const __script = {}import { updateStyle } from "/@hmr"

which is not JS valid. So I add the following to be

const __script = {}
import { updateStyle } from "/@hmr"