diff --git a/.circleci/config.yml b/.circleci/config.yml index 4fe9eff968bf30..e52d49619d63a7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -423,12 +423,6 @@ jobs: - run: name: pnpm test:e2e command: pnpm test:e2e - - run: - name: Can we generate the @mui/material umd build? - command: pnpm --filter @mui/material build:umd - - run: - name: Test umd release - command: pnpm test:umd test_e2e_website: # NOTE: This workflow runs after successful docs deploy. See /test/e2e-website/README.md#ci <<: *default-job diff --git a/babel.config.js b/babel.config.js index 6b373018b036be..dd9917d435f3a7 100644 --- a/babel.config.js +++ b/babel.config.js @@ -13,7 +13,7 @@ const productionPlugins = [ ]; module.exports = function getBabelConfig(api) { - const useESModules = api.env(['regressions', 'modern', 'stable', 'rollup']); + const useESModules = api.env(['regressions', 'modern', 'stable']); const defaultAlias = { '@mui/material': resolveAliasPath('./packages/mui-material/src'), @@ -142,16 +142,6 @@ module.exports = function getBabelConfig(api) { ], ], }, - rollup: { - plugins: [ - [ - 'babel-plugin-module-resolver', - { - alias: defaultAlias, - }, - ], - ], - }, test: { sourceMaps: 'both', plugins: [ diff --git a/docs/data/material/getting-started/installation/installation.md b/docs/data/material/getting-started/installation/installation.md index b740437dafa801..6c342b75c5313d 100644 --- a/docs/data/material/getting-started/installation/installation.md +++ b/docs/data/material/getting-started/installation/installation.md @@ -159,20 +159,12 @@ For instance, via Google Web Fonts: ## CDN You can start using Material UI right away with minimal front-end infrastructure by installing it via CDN, which is a great option for rapid prototyping. -Follow [this CDN example](https://github.com/mui/material-ui/tree/master/examples/material-ui-via-cdn) to get started. + + + +Follow [this CDN example](https://github.com/mui/material-ui/tree/next/examples/material-ui-via-cdn) to get started. :::error We do _not_ recommend using this approach in production. It requires the client to download the entire library—regardless of which components are actually used—which negatively impacts performance and bandwidth utilization. ::: - -Two Universal Module Definition (UMD) files are provided: - -- one for development: https://unpkg.com/@mui/material@latest/umd/material-ui.development.js -- one for production: https://unpkg.com/@mui/material@latest/umd/material-ui.production.min.js - -:::warning -The UMD links use the `latest` tag to point to the latest version of the library. -This pointer is _unstable_ and subject to change as we release new versions. -You should consider pointing to a specific version, such as [v5.0.0](https://unpkg.com/@mui/material@5.0.0/umd/material-ui.development.js). -::: diff --git a/docs/data/material/migration/migration-v5/migration-v5.md b/docs/data/material/migration/migration-v5/migration-v5.md index 4042fa86648dc2..de104758f04fc5 100644 --- a/docs/data/material/migration/migration-v5/migration-v5.md +++ b/docs/data/material/migration/migration-v5/migration-v5.md @@ -23,3 +23,9 @@ The steps you need to take to migrate from Material UI v5 to v6 are described This list is a work in progress. Expect updates as new breaking changes are introduced. ::: + +### UMD bundle was removed + + + +The UMD bundle is no longer provided. This was replaced in favor of [ESM CDNs](https://esm.sh/). Please refer to the [CDN docs](https://next.mui.com/material-ui/getting-started/installation/#cdn) for alternatives. diff --git a/examples/material-ui-via-cdn/README.md b/examples/material-ui-via-cdn/README.md index fea6b75a3cce21..ae7543e2eee7ee 100644 --- a/examples/material-ui-via-cdn/README.md +++ b/examples/material-ui-via-cdn/README.md @@ -19,7 +19,7 @@ open index.html ## The idea behind the example -You can start using Material UI with minimal front-end infrastructure, which is great for prototyping. +You can start using Material UI with minimal front-end infrastructure, which is great for prototyping. It uses [ESM CDNs](https://esm.sh/). We discourage using this approach in production, though. The client has to download the entire library, regardless of which components are used, affecting performance and bandwidth usage. @@ -27,15 +27,6 @@ The client has to download the entire library, regardless of which components ar [The live preview.](https://rawcdn.githack.com/mui/material-ui/next/examples/material-ui-via-cdn/index.html) -## UMD releases - -We are providing two Universal Module Definition (UMD) files: - -- one for development: https://unpkg.com/@mui/material@latest/umd/material-ui.development.js -- one for production: https://unpkg.com/@mui/material@latest/umd/material-ui.production.min.js - - - ## What's next? You now have a working example project. diff --git a/examples/material-ui-via-cdn/index.html b/examples/material-ui-via-cdn/index.html index 5eec9b06b61bd3..253082f973bc5b 100644 --- a/examples/material-ui-via-cdn/index.html +++ b/examples/material-ui-via-cdn/index.html @@ -4,19 +4,6 @@