Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(compiler-sfc): ignore empty blocks #3520

Merged
merged 1 commit into from
Jul 19, 2021

Commits on Mar 31, 2021

  1. feat(compiler-sfc): ignore empty blocks

    The current implementation ignores `<script/>` and `<styles/>` but not empty blocks like `<script>  \n\t</script>`.
    This results in unnecessary code generated for a component when these blocks are actually empty.
    
    This commit filters such nodes int he SFC compiler, resulting in less code generated.
    cexbrayat committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    8093643 View commit details
    Browse the repository at this point in the history