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