123456789101112131415161718192021 |
- // babel-preset-taro 更多选项和默认值:
- // https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
- module.exports = {
- presets: [
- ['taro', {
- framework: 'react',
- ts: false
- }]
- ],
- plugins: [
- [
- 'import',
- {
- libraryName: '@antmjs/vantui',
- libraryDirectory: 'es',
- style: (name) => `${name}/style/less`
- },
- '@antmjs/vantui'
- ],
- ]
- }
|