Patch Changes
- #4292
a81b35eThanks @DylanPiercey! - Keep the comments of a body that has no statements, such as<button onClick() { /* todo */ }>, without the stray;that source output printed before them, and keep the comments of astatic,serverorclientblock that holds only comments, which were dropped. A shorthand method also keeps its directives, such as"use strict". The newparseBlockhelper in@marko/compiler/babel-utilsparses statements as a block that holds them. A<script>whose body has no statements, such as<script value() {}/>, no longer registers an effect, which left the client template referencing a setup function it never defined.