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