Skip to content

vue2.4 set comments true, don't work #6177

@Cydmi

Description

@Cydmi

Version

2.4.1

Reproduction link

https://codepen.io/anon/pen/dREmrV

Steps to reproduce

<template>
  <!--hello-->  
  <div class="hello">
    <h1>{{ msg }}</h1>
  </div>
</template>

<script>
export default {
  comments: true,
  data () {
    return {
      msg: 'hello'
    }
  }
}
</script>

vue-cli
comments:true
The comment is gone

What is expected?

see link

What is actually happening?

use vue-cli
The comment is gone

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions