text: export default {
    entry: 'src/index.js',
    define: {
      'process.env': {},
      'process.env.NODE_ENV': process.env.NODE_ENV,
      'process.env.STAGE_ENV': process.env.STAGE_ENV || 'dev',
    },
    env: {
      development: {
        extraBabelPlugins: [
          'dva-hmr',
          'transform-runtime',
          [
            'import',
            {
              libraryName: 'antd',
              style: true
            }
          ]
        ]
      },
      staging: {
        extraBabelPlugins: [
          'dva-hmr',
          'transform-runtime',
          [
            'import',
            {
              libraryName: 'antd',
              style: true
            }
          ]
        ]
      },
      production: {
        extraBabelPlugins: [
          'transform-runtime',
          [
            'import',
            {
              libraryName: 'antd',
              style: true
            }
          ]
        ]
      }
    }
  }
  