.vue file jsx error
djkloop opened this issue · 2 comments
djkloop commented
djkloop commented
// babel.config.js
module.exports = {
presets: ['@vue/app'],
'plugins': [
[
'@babel/plugin-transform-runtime',
{
'absoluteRuntime': false,
'corejs': false,
'helpers': true,
'regenerator': true,
'useESModules': false
}
]
]
}
// bili.config.js
module.exports = {
plugins: {
vue: true,
},
// ...other options
}
Vue-cli provides a built-in set of babel configuration options. How can I use it?
Vincent1993 commented
@djkloop Vue JSX support is removed, it seems to be rarely used. Let me know if you need it.
You should configure your own babel config and enable babel in bili.config
just like this
// bili.config.js
module.exports = {
babel: {
configFile: true
}
}