docs: 🎬 fix @ant-design/icons dep in Stackblitz (#21720)

* 🎬 fix @ant-design/icons dep in Stackblitz

close #21718

* fix codepen cdn url
This commit is contained in:
偏右 2020-03-01 18:22:53 +08:00 committed by GitHub
parent e868c87530
commit dbc64339db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,6 +190,7 @@ class Demo extends React.Component {
'moment/min/moment-with-locales.js',
// eslint-disable-next-line no-undef
`antd@${antdReproduceVersion}/dist/antd-with-locales.js`,
`@ant-design/icons/dist/index.umd.js`,
'react-router-dom/umd/react-router-dom.min.js',
'react-router@3.x/umd/ReactRouter.min.js',
]
@ -219,10 +220,7 @@ class Demo extends React.Component {
{ react: 'latest', 'react-dom': 'latest', antd: antdReproduceVersion },
);
if (dependencies['@ant-design/icons']) {
// eslint-disable-next-line no-undef
dependencies['@ant-design/icons'] = 'latest';
}
dependencies['@ant-design/icons'] = 'latest';
// Reorder source code
let parsedSourceCode = sourceCode;