Package Exports
- @vue/babel-helper-vue-jsx-merge-props
- @vue/babel-helper-vue-jsx-merge-props/dist/helper.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@vue/babel-helper-vue-jsx-merge-props) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@vue/babel-helper-vue-jsx-merge-props
A package used internally by vue jsx transformer to merge props spread. It is required to merge some prop trees like this:
import mergeProps from '@vue/babel-helper-vue-jsx-merge-props'
const MyComponent = {
render(h) {
// original: <button onClick={$event => console.log($event)} {...{ on: { click: $event => doSomething($event) } }} />
return h(
'button',
mergeProps([
{
on: {
click: $event => console.log($event),
},
},
{
on: {
click: $event => doSomething($event),
},
},
]),
)
},
}
This tool is used internally and there is no reason for you to ever use it.