module.exports = { presets: [ "@babel/preset-env", [ "@babel/preset-typescript", { allExtensions: true, //支持所有文件扩展名 }, ], ], plugins: [ "@babel/plugin-transform-class-properties", "@babel/plugin-transform-object-rest-spread", "@vue/babel-plugin-jsx", ] }