chore: fix demos not working in codepen (#39407)

* chore: fix incorrect external url for react-router

* chore: fix external url missing dayjs
This commit is contained in:
Dunqing 2022-12-08 22:33:59 +08:00 committed by GitHub
parent 07f7e44a4f
commit 9ce2da2988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -244,10 +244,11 @@ class Demo extends React.Component<DemoProps, DemoState> {
js_external: [
'react@18/umd/react.development.js',
'react-dom@18/umd/react-dom.development.js',
'dayjs@1/dayjs.min.js',
`antd@${version}/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',
'react-router-dom/dist/umd/react-router-dom.production.min.js',
'react-router/dist/umd/react-router.production.min.js',
]
.map((url) => `https://unpkg.com/${url}`)
.join(';'),