diff --git a/.webpackrc.js b/.webpackrc.js index ce65d3112aa8f882423aac5cf1518f6f5c4470b0..e0bedf69eaaac4a9b72fca57d2ef18b7cedc3b90 100755 --- a/.webpackrc.js +++ b/.webpackrc.js @@ -2,14 +2,17 @@ const path = require('path'); export default { entry: 'src/index.js', - extraBabelPlugins: [ - ['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }], - ], + extraBabelPlugins: [['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }]], env: { development: { extraBabelPlugins: ['dva-hmr'], }, }, + externals: { + '@antv/data-set': 'DataSet', + bizcharts: 'BizCharts', + rollbar: 'rollbar', + }, alias: { components: path.resolve(__dirname, 'src/components/'), }, diff --git a/src/index.ejs b/src/index.ejs index 586f62e88da0971078be870f355d44910e064dc0..777b30ee9ea062c3fd447083272e797340e2838a 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -7,6 +7,10 @@