mkdist currently only transforms first block of each type in vue files.
This is a hotfix to handle an issue where the first <script> block is transpiled, and the second one isn't, which yields a vue compiler error (because lang should match between script blocks).
We would need to support handling multiple script blocks in future.
mkdist
currently only transforms first block of each type in vue files.This is a hotfix to handle an issue where the first
<script>
block is transpiled, and the second one isn't, which yields a vue compiler error (becauselang
should match between script blocks).We would need to support handling multiple script blocks in future.
related: https://github.com/unjs/mkdist/issues/209