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

Babel translates wrong when using laravel-mix

Open bigjoevtrj opened this issue 7 years ago • 3 comments

export default {} translates to exports.default = expected was module.exports =

bigjoevtrj avatar Nov 18 '17 12:11 bigjoevtrj

Is this an issue when using jsx?

mikebonds avatar Jan 17 '18 18:01 mikebonds

yes, we need to explicit declare module.exports to it works. Maybe it's because I've used it to develop Vue content.

bigjoevtrj avatar Jan 17 '18 18:01 bigjoevtrj

What version of Mix, Laravel and Vue are you using?

mikebonds avatar Jan 17 '18 18:01 mikebonds