Skip to content

Releases: nickmessing/babel-plugin-jsx-vue-functional

v2.1.0

26 May 13:22
Compare
Choose a tag to compare

Changes:
Add name property in development mode for devtools.

2.0.0

26 May 03:11
Compare
Choose a tag to compare

Added ability to transpile all arrow functions as described in #2. Now you can define functional components in same file but remember that this syntax:

const A = () => <h1>Hello World</h1>
export const B = ({ props, listeners }) => <div onClick={listeners.click}>{props.msg}{A()}</div>

should be replaced with:

const A = () => <h1>Hello World</h1>
export const B = ({ props, listeners }) => <div onClick={listeners.click}>{props.msg}<A /></div>