babel-plugin-transform-vue-jsx icon indicating copy to clipboard operation
babel-plugin-transform-vue-jsx copied to clipboard

diffrent behavior of babel-plugin-transform-vue-jsx

Open ftyszyx opened this issue 7 years ago • 0 comments

I use the element libaray,in the libaray,i found a diffrent behavior of babel-plugin-transform-vue-jsx. in the element libaray,there are such code: let template = <div class='el-pagination'></div>;

when i use transform-vue-jsx 3.5.0, the result is

var template = h(
      'div',
      { 'class': 'el-pagination' },
      []
    );

when i use transform-vue-jsx 3.5.1 the result is var template = h('div', { 'class': 'el-pagination' });

so in transform-vue-jsx 3.5.1 the template.children is undefined then the web run error. but in transform-vue-jsx 3.5.0 the code run well. i haven't the right to change the library's code . can anyone help me ,how to resolve the problem.

image image

ftyszyx avatar Feb 09 '18 07:02 ftyszyx