mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
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:
parent
e868c87530
commit
dbc64339db
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user