vue2react
vue2react copied to clipboard
Inline comments not translated to React
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.