Skip to content

Commit

Permalink
🔧 build: 优化打包配置
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Mar 31, 2021
1 parent 9e97f07 commit bc2dcb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .fatherrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ module.exports = {
'import',
{ libraryName: 'antd', libraryDirectory: 'es', style: 'css' },
'antd',
],
[
'import',
{
libraryName: '@ant-design/charts',
libraryDirectory: 'lib',
Expand Down
2 changes: 1 addition & 1 deletion packages/journal-map/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ module.exports = {
library: 'JournalMap',
path: path.resolve(__dirname, 'dist'),
},
externals: [...config.externals, '@ant-design/charts'],
externals: [...config.externals, { '@ant-design/charts': 'charts' }],
};

1 comment on commit bc2dcb3

@vercel
Copy link

@vercel vercel bot commented on bc2dcb3 Mar 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.