diff --git a/.antd-tools.config.js b/.antd-tools.config.js index 8a1126d63b..5c139e9d30 100644 --- a/.antd-tools.config.js +++ b/.antd-tools.config.js @@ -29,5 +29,4 @@ module.exports = { finalize: finalizeDist, }, bail: true, - tag: 'next', }; diff --git a/.dumi/theme/plugin.ts b/.dumi/theme/plugin.ts index 2168e31943..3d844e810c 100644 --- a/.dumi/theme/plugin.ts +++ b/.dumi/theme/plugin.ts @@ -44,7 +44,7 @@ const RoutesPlugin = (api: IApi) => { api.registerTechStack(() => new AntdReactTechStack()); - api.modifyRoutes(routes => { + api.modifyRoutes((routes) => { // TODO: append extra routes, such as home, changelog, form-v3 const extraRoutesList: IRoute[] = [ @@ -64,24 +64,24 @@ const RoutesPlugin = (api: IApi) => { }, ]; - extraRoutesList.forEach(itemRoute => { + extraRoutesList.forEach((itemRoute) => { routes[itemRoute.path] = itemRoute; }); return routes; }); - api.modifyExportHTMLFiles(files => + api.modifyExportHTMLFiles((files) => files // exclude dynamic route path, to avoid deploy failed by `:id` directory - .filter(f => !f.path.includes(':')) + .filter((f) => !f.path.includes(':')) // FIXME: workaround to make emotion support react 18 pipeableStream // ref: https://github.com/emotion-js/emotion/issues/2800#issuecomment-1221296308 - .map(file => { + .map((file) => { let styles = ''; // extract all emotion style tags from body - file.content = file.content.replace(/