Open
Description
'SyntaxError: [vue/compiler-sfc] Unexpected token' exception when SFC content (script section) include '</script>' string
If script section of sfc include substring </script>
then exception SyntaxError: [vue/compiler-sfc] Unexpected token
generated.
To Reproduce
Source code to reproduce error:
Expected behavior
Work without error
Versions
- Browser (name & version): ms edge
- vue3-sfc-loader: 0.9.5
Additional context
Temporary solution is split string to two substring ('</script>'
as '</' + 'script>'
)