babel.config.js 495B

1234567891011121314151617181920212223
  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. // hot:false,
  9. // 'dynamic-import-node': true,
  10. }]
  11. ],
  12. plugins: [
  13. [
  14. "import",
  15. {
  16. libraryName: "@antmjs/vantui",
  17. libraryDirectory: "es",
  18. style: (name) => `${name}/style/less`,
  19. },
  20. "@antmjs/vantui"
  21. ]
  22. ]
  23. }