vue2react icon indicating copy to clipboard operation
vue2react copied to clipboard

Inline comments not translated to React

Open landgenoopur opened this issue 6 years ago • 0 comments

In following Vue component, not all inline comments are translated in React component.

<!----------------------------------------------------------------------
* CONFIDENTIAL
* ___________________
*
* Copyright 2019
* All Rights Reserved.
*
* NOTICE: Legal copyright notice.
* This will not be translated
------------------------------------------------------------------------>

<template>
  <div>
    My Template
  </div>
</template>

<script>
  // Comment 1: This will not be translated
  export default {
    data(){
      return {
        myData: "My Data"
      };
    },
    methods: {
      myMethod(){
        // Comment 2: This will be translated
        return 1;
      }
      // Comment 3: This will not be translated
    }
    // Comment 4: This will not be translated
  };
</script>

Verified at https://www.mcuking.club/vue2react/

Need support for inline comments at every block level.

landgenoopur avatar Jan 07 '20 09:01 landgenoopur