Skip to content

Commit

Permalink
[core] Update monorepo (#3424)
Browse files Browse the repository at this point in the history
Co-authored-by: MUI bot <2109932+Janpot@users.noreply.github.com>
  • Loading branch information
oliviertassinari and Janpot authored Apr 29, 2024
1 parent cd4b546 commit 3d4dbfd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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: {
Expand Down

0 comments on commit 3d4dbfd

Please sign in to comment.