From 3d4dbfd90cf1df13fed0e68c5bc588dea92d5cc9 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Mon, 29 Apr 2024 17:04:06 +0200 Subject: [PATCH] [core] Update monorepo (#3424) Co-authored-by: MUI bot <2109932+Janpot@users.noreply.github.com> --- docs/next.config.mjs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/next.config.mjs b/docs/next.config.mjs index 7c03faa9551..a346d465399 100644 --- a/docs/next.config.mjs +++ b/docs/next.config.mjs @@ -19,15 +19,13 @@ const MONOREPO_PACKAGES = { }; export default withDocsInfra({ - experimental: { - workerThreads: true, - cpus: 3, - }, transpilePackages: [ - '@mui/monorepo', // TODO, those shouldn't be needed in the first place + '@mui/monorepo', // Migrate everything to @mui/docs until the @mui/monorepo dependency becomes obsolete '@mui/x-charts', // Fix ESM module support https://github.com/mui/mui-x/issues/9826#issuecomment-1658333978 - '@mui/docs', // Fix trailingSlash support https://github.com/mui/mui-toolpad/pull/3301#issuecomment-2054213837 + // Fix trailingSlash support https://github.com/mui/mui-toolpad/pull/3301#issuecomment-2054213837 + // Migrate everything from @mui/monorepo to @mui/docs + '@mui/docs', ], // Avoid conflicts with the other Next.js apps hosted under https://mui.com/ assetPrefix: process.env.DEPLOY_ENV === 'development' ? undefined : '/toolpad', @@ -43,6 +41,8 @@ export default withDocsInfra({ webpack: (config, options) => { return { ...config, + // TODO, this shouldn't be needed in the first place + // Migrate everything from @mui/monorepo to @mui/docs and embed @mui/internal-markdown in @mui/docs resolveLoader: { ...config.resolveLoader, alias: {