Last 12 weeks · 0 commits
0 of 6 standards met
Repository: vuejs/babel-helper-vue-jsx-merge-props. Description: babel helper for vue jsx spread. Stars: 30, Forks: 13. Primary language: JavaScript. Languages: JavaScript (100%). Open PRs: 1, open issues: 2. Last activity: 5y ago. Community health: 12%. Top contributors: yyx990803, njleonzhang.
I am using with and encountered a problem somewhat like This directive makes v-show not work when been added after it After reading the codes I found that is using to merge props but nest merge of 'directives' is not supported, that is what causes the problem. Owing to my limited knowledge, I cannot see why. Please consider it if it's reasonable.
It look the npm package is wrong?
Fix related issue vuejs/babel-plugin-transform-vue-jsx#171 Currently, the props are directly assigned to the result in the reduce function. The problem is when using spread operator in jsx, the parameter is the original object. As a result, when assigning something to , it will mutate that object. These changes fix the issue by copying the props instead of direct assignment. This PR also passed the test cases in vuejs/babel-plugin-transform-vue-jsx.