mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-06 05:57:35 +08:00
24 lines
568 B
JavaScript
24 lines
568 B
JavaScript
const babelPresetFlowVue = {
|
|
plugins: [
|
|
require('@babel/plugin-proposal-class-properties'),
|
|
// require('@babel/plugin-syntax-flow'), // not needed, included in transform-flow-strip-types
|
|
require('@babel/plugin-transform-flow-strip-types')
|
|
]
|
|
}
|
|
|
|
module.exports = {
|
|
presets: [
|
|
require('@babel/preset-env'),
|
|
// require('babel-preset-flow-vue')
|
|
babelPresetFlowVue
|
|
],
|
|
plugins: [
|
|
require('babel-plugin-transform-vue-jsx'),
|
|
require('@babel/plugin-syntax-dynamic-import')
|
|
],
|
|
ignore: [
|
|
'dist/*.js',
|
|
'packages/**/*.js'
|
|
]
|
|
}
|