.babelrc.js 339 Bytes
Newer Older
jim's avatar
fix ci  
jim committed
1 2
const path = require('path');

3 4 5 6 7 8
module.exports = {
  plugins: [
    [
      'babel-plugin-module-resolver',
      {
        alias: {
jim's avatar
fix ci  
jim committed
9
          components: path.join(__dirname, './src/components'),
10 11 12
        },
      },
    ],
jim's avatar
fix ci  
jim committed
13 14 15 16 17 18 19
    [
      'import',
      {
        libraryName: 'antd',
        style: true, // or 'css'
      },
    ],
20
  ],
jim's avatar
fix ci  
jim committed
21
};