jsx-vue2
jsx-vue2 copied to clipboard
过滤掉jsx属性中的换行符
render (h) {
return (
<div style='
line-height: 16px;
text-align: left;
'>
</div>
)}
以上jsx如果不过滤换行符,会报错: Unterminated string constant
在老版本jsx插件中, 是会过滤掉属性中的换行符,老版本参考: [ babel-plugin-transform-vue-jsx /index.js](https://github.com/vuejs/babel-plugin-transform-vue-jsx/blob/6ad7487579094cc188d470171af8f62335193896/index.js#L207)