babel.config.js 441 B

123456789101112131415161718192021222324
  1. // babel-preset-taro 更多选项和默认值:
  2. // https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
  3. module.exports = {
  4. presets: [
  5. [
  6. 'taro',
  7. {
  8. framework: 'react',
  9. ts: false,
  10. },
  11. ],
  12. ],
  13. plugins: [
  14. [
  15. 'import',
  16. {
  17. libraryName: '@antmjs/vantui',
  18. libraryDirectory: 'es',
  19. style: true,
  20. },
  21. '@antmjs/vantui',
  22. ],
  23. ],
  24. };