text: const path = require('path');
  const webpack = require('webpack');
  
  export default {
    entry: 'src/index.js',
    extraBabelPlugins: [['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }]],
    env: {
      development: {
        extraBabelPlugins: ['dva-hmr'],
      },
    },
    externals: {
      '@antv/data-set': 'DataSet',
      rollbar: 'rollbar',
    },
    define: {
      REACT_APP_API: process.env.REACT_APP_API,
      HOST: process.env.HOST,
      PORT: process.env.PORT,
    },
    alias: {
      components: path.resolve(__dirname, 'src/components/'),
    },
    ignoreMomentLocale: true,
    theme: './src/theme.js',
    html: {
      template: './src/index.ejs',
    },
    lessLoaderOptions: {
      javascriptEnabled: true,
    },
    disableDynamicImport: true,
    publicPath: '/',
    hash: true,
  };
  