1234567891011121314151617181920 |
- // babel-preset-taro 更多选项和默认值:
- // https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
- module.exports = {
- presets: [
- ['taro', {
- framework: 'vue3',
- ts: true,
- compiler: 'webpack5',
- }]
- ],
- plugins: [
- '@babel/plugin-proposal-class-properties',
- '@babel/plugin-proposal-object-rest-spread',
- ['@babel/plugin-transform-runtime', {
- 'corejs': false,
- 'helpers': true,
- 'regenerator': true
- }]
- ]
- }
|