Skip to content

Commit f237de7

Browse files
[core] Fix webpack capitalization
1 parent 00eadaf commit f237de7

32 files changed

+51
-50
lines changed

CHANGELOG.old.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -2449,7 +2449,7 @@ A big thanks to the 21 contributors who made this release possible. Here are som
24492449
### Core
24502450

24512451
- [changelog] Fix issues in highlight @oliviertassinari
2452-
- [core] Remove redundant `@material-ui/` aliases from regression test Webpack config (#38574) @ZeeshanTamboli
2452+
- [core] Remove redundant `@material-ui/` aliases from regression test webpack config (#38574) @ZeeshanTamboli
24532453
- [core] Fix CI error @oliviertassinari
24542454
- [core] Remove unnecessary Box (#38461) @oliviertassinari
24552455
- [core] Set GitHub Action top level permission @oliviertassinari
@@ -5458,7 +5458,7 @@ A big thanks to the 21 contributors who made this release possible. Here are som
54585458
- [docs] Fix typo in `Grid` docs (#34475) @Dustin-Digitar
54595459
- [docs] Fix typo in `Back to top` section in AppBar docs (#34479) @Dustin-Digitar
54605460
- [docs] Standardize all "Installation" pages (#34168) @samuelsycamore
5461-
- [docs] Fix Webpack file name to the standard: `webpack.config.js` (#34446) @CodingItWrong
5461+
- [docs] Fix webpack file name to the standard: `webpack.config.js` (#34446) @CodingItWrong
54625462
- [docs] Fix Select `onChange` call (#34408) @siriwatknp
54635463
- [docs] Notification for pickers blog - v5 stable (#34400) @joserodolfofreitas
54645464
- [docs] Improve social sharing of docs pages (#34346) @oliviertassinari
@@ -6103,7 +6103,7 @@ A big thanks to the 19 contributors who made this release possible. Here are som
61036103
- [docs] Update to React 18 (#33196) @mnajdova
61046104
- [docs] Simplify "Upload button" demo (#33326) @baharalidurrani
61056105
- [docs] Add "refine" demo to showcase (#33240) @omeraplak
6106-
- [docs] Add Webpack alias for legacy utils package (#33376) @jgbae
6106+
- [docs] Add webpack alias for legacy utils package (#33376) @jgbae
61076107
- [docs] Improve external link icons synonyms (#33257) @davidgarciab
61086108
- [examples] Update Base UI with Tailwind CSS to use the latest versions of the dependencies (#33401) @mnajdova
61096109
- [examples] Add Base UI example (#33154) @siriwatknp
@@ -8762,7 +8762,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
87628762
- [core] Remove code handling JSS components (#28421) @eps1lon
87638763
- [core] Remove unused dependencies (#28468) @eps1lon
87648764
- [core] Ensure both docs bundles are analyzeable (#28410) @eps1lon
8765-
- [core] Switch to Webpack 5 (#28248) @eps1lon
8765+
- [core] Switch to webpack 5 (#28248) @eps1lon
87668766
- [core] Batch small changes (#28177) @oliviertassinari
87678767
- [core] Update publish tag to latest (#28382) @mnajdova
87688768
- [framer] Update @mui/\* dependencies (#28469) @eps1lon
@@ -9483,7 +9483,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
94839483
- [docs] Sort the size in a more logical order (#27186) @oliviertassinari
94849484
- [docs] Use actual link to paperbase (#27063) @eps1lon
94859485
- [docs] Use custom markdown loader for landing page (#27065) @eps1lon
9486-
- [docs] Use Webpack 5 (#27077) @eps1lon
9486+
- [docs] Use webpack 5 (#27077) @eps1lon
94879487
- [examples] Fix CDN warning (#27229) @oliviertassinari
94889488
- [examples] Remove `StyledEngineProvider` as JSS is not used (#27133) @mnajdova
94899489
- [examples] Remove forgotten StyledEngineProvider (#27163) @oliviertassinari
@@ -9612,7 +9612,7 @@ A big thanks to the 13 contributors who made this release possible. Here are som
96129612
- [docs] Fix /components/hidden merge conflict (#26997) @eps1lon
96139613
- [docs] Fix 404 links (#26963) @oliviertassinari
96149614
- [docs] Remove link that points to v4 blog post (#26960) @steveafrost
9615-
- [docs] Use custom Webpack loader for markdown (#26774) @eps1lon
9615+
- [docs] Use custom webpack loader for markdown (#26774) @eps1lon
96169616
- [docs] Fix 301 links (#26942) @oliviertassinari
96179617
- [docs] Add page for the `sx` prop (#26769) @mnajdova
96189618
- [docs] pre-fill issue when a demo crashes (#27034) @eps1lon
@@ -15660,7 +15660,7 @@ A big thanks to the 25 contributors who made this release possible.
1566015660
- [docs] Improve a11y of the chip array example (#20294) @m4theushw
1566115661
- [docs] Refactor markdown parsing (#20549) @eps1lon
1566215662
- [docs] Remove old workarounds (#20587) @eps1lon
15663-
- [docs] Remove unnecessary Webpack loaders (#20563) @eps1lon
15663+
- [docs] Remove unnecessary webpack loaders (#20563) @eps1lon
1566415664
- [docs] Sync translations (#20498) @oliviertassinari
1566515665
- [docs] Use reactStrictMode over custom switch (#20522) @eps1lon
1566615666

@@ -22224,7 +22224,7 @@ A big thanks to the 14 contributors who made this release possible.
2222422224
- [RaisedButton] Conditionally apply overlay backgroundColor (#9811) @walwoodr
2222522225
- [Snackbar] Static properties for reason string constants (#10300) @RavenHursT
2222622226
- [TextField] Fix caret position issue (#10214) @MaratFaskhiev
22227-
- Add sideEffects: false for Webpack 4 (#11167) @matthoffner
22227+
- Add sideEffects: false for webpack 4 (#11167) @matthoffner
2222822228

2222922229
### Docs
2223022230

@@ -25082,7 +25082,7 @@ When `withStyles()` is used as a decorator and `strictNullChecks` is enabled, on
2508225082
- [types] Better component typing (#8304) @oliviertassinari
2508325083
- [styles] Add a new defensive warning (#8341) @oliviertassinari
2508425084
- [core] Upgrade the dependencies (#8284) @oliviertassinari
25085-
- [core] Help Webpack doing dead code elimination (#8340) @oliviertassinari
25085+
- [core] Help webpack doing dead code elimination (#8340) @oliviertassinari
2508625086
- [core] Add TypeScript in the CI (#8328) @oliviertassinari
2508725087
- [typescript] Fix typo in Tooltip (#8271) @Rid
2508825088
- [typescript] Fix definitions for BreakpointsOptions (#8285) @peterprice
@@ -25802,7 +25802,7 @@ We do, we have extended the support of React to the 16.0.0-alpha.13 release (aka
2580225802
- [docs] Fix typo in class name (#7192) @ossan-engineer
2580325803
- [docs] Add supported server section (#7231) @oliviertassinari
2580425804
- [docs] Detail the browser support (#7188) @oliviertassinari
25805-
- [docs] Upgrade to Webpack v3 (#7210) @oliviertassinari
25805+
- [docs] Upgrade to webpack v3 (#7210) @oliviertassinari
2580625806
- [docs] More documentation on the typography (#7248) @oliviertassinari
2580725807

2580825808
### Core
@@ -26381,7 +26381,7 @@ _Feb 26, 2017_
2638126381

2638226382
### Docs
2638326383

26384-
- [docs] Use Webpack 2 & dll bundle (#6160) @nathanmarks
26384+
- [docs] Use webpack 2 & dll bundle (#6160) @nathanmarks
2638526385
- [docs] Improve the user experience on mobile (#6154) @oliviertassinari
2638626386
- [docs] Fix the Table examples on mobile (425d8ed47e0282b8c0409517c53e00ef61374b02) @oliviertassinari
2638726387
- [docs] Add an API section (#6239) @oliviertassinari
@@ -26391,7 +26391,7 @@ _Feb 26, 2017_
2639126391

2639226392
- [core] Fix typos in styles/transitions pointed out in issue (#6175) @Shahrukh-Zindani
2639326393
- [core] Lightweight the build (#6152) @oliviertassinari
26394-
- [core] Add exports to index.js for inclusion in Webpack bundle (#6144) @fkretzer
26394+
- [core] Add exports to index.js for inclusion in webpack bundle (#6144) @fkretzer
2639526395
- [test] Integration of test suite to run on BrowserStack (#6236) @oliviertassinari
2639626396
- [test] Bump vrtest version for exit code fix (1831aa76fe72e9b22a0b82f2a360f860ca89fdce) @nathanmarks
2639726397

@@ -26535,7 +26535,7 @@ You can preview a **very early** version of the `next` branch following [this li
2653526535

2653626536
### Core
2653726537

26538-
- [core] Add support for Webpack 2/Rollup tree shaking in `svg-icons` sub module (#5774)
26538+
- [core] Add support for webpack 2/Rollup tree shaking in `svg-icons` sub module (#5774)
2653926539

2654026540
## 0.16.5
2654126541

@@ -26595,7 +26595,7 @@ This release is intended to solve an [issue](https://github.com/mui/material-ui/
2659526595

2659626596
- [ListItem] Fix hover on touch devices (#5566)
2659726597
- [core] include `react-tap-event-plugin@^2.0.0` for `react@^15.4.0` (#5572)
26598-
- [core] Add support for Webpack 2/Rollup tree shaking (#5545)
26598+
- [core] Add support for webpack 2/Rollup tree shaking (#5545)
2659926599

2660026600
### Docs
2660126601

docs/data/joy/integrations/icon-libraries/icon-libraries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ npm install @mui/icons-material @mui/material
4747

4848
Because `@mui/material` is a required dependency of `@mui/icons-material`, you have to update your bundler's config to add an alias.
4949

50-
Here is an example of how you can do it, if you use [Webpack](https://webpack.js.org/):
50+
Here is an example of how you can do it, if you use [webpack](https://webpack.js.org/):
5151

5252
**webpack.config.js**
5353

docs/data/material/components/icons/icons.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ This component extends the native `<svg>` element:
120120
### Component prop
121121

122122
You can use the `SvgIcon` wrapper even if your icons are saved in the `.svg` format.
123-
[svgr](https://github.com/gregberge/svgr) has loaders to import SVG files and use them as React components. For example, with Webpack:
123+
[svgr](https://github.com/gregberge/svgr) has loaders to import SVG files and use them as React components. For example, with webpack:
124124

125125
```jsx
126126
// webpack.config.js

docs/data/material/getting-started/faq/faq.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ There are several common reasons for this to happen:
351351

352352
- You have another `@mui/styles` library somewhere in your dependencies.
353353
- You have a monorepo structure for your project (for example, lerna or yarn workspaces) and `@mui/styles` module is a dependency in more than one package (this one is more or less the same as the previous one).
354-
- You have several applications that are using `@mui/styles` running on the same page (for example, several entry points in Webpack are loaded on the same page).
354+
- You have several applications that are using `@mui/styles` running on the same page (for example, several entry points in webpack are loaded on the same page).
355355

356356
### Duplicated module in node_modules
357357

@@ -365,7 +365,7 @@ If you identified that duplication is the issue that you are encountering there
365365
If you are using npm you can try running `npm dedupe`.
366366
This command searches the local dependencies and tries to simplify the structure by moving common dependencies further up the tree.
367367

368-
If you are using Webpack, you can change the way it will [resolve](https://webpack.js.org/configuration/resolve/#resolve-modules) the @mui/styles module. You can overwrite the default order in which Webpack will look for your dependencies and make your application node_modules more prioritized than default node module resolution order:
368+
If you are using webpack, you can change the way it will [resolve](https://webpack.js.org/configuration/resolve/#resolve-modules) the @mui/styles module. You can overwrite the default order in which webpack will look for your dependencies and make your application node_modules more prioritized than default node module resolution order:
369369

370370
```diff
371371
resolve: {
@@ -377,7 +377,7 @@ If you are using Webpack, you can change the way it will [resolve](https://webpa
377377

378378
### Running multiple applications on one page
379379

380-
If you have several applications running on one page, consider using one @mui/styles module for all of them. If you are using Webpack, you can use [CommonsChunkPlugin](https://webpack.js.org/plugins/commons-chunk-plugin/) to create an explicit [vendor chunk](https://webpack.js.org/plugins/commons-chunk-plugin/#explicit-vendor-chunk), that will contain the @mui/styles module:
380+
If you have several applications running on one page, consider using one @mui/styles module for all of them. If you are using webpack, you can use [CommonsChunkPlugin](https://webpack.js.org/plugins/commons-chunk-plugin/) to create an explicit [vendor chunk](https://webpack.js.org/plugins/commons-chunk-plugin/#explicit-vendor-chunk), that will contain the @mui/styles module:
381381

382382
```diff
383383
module.exports = {
@@ -409,7 +409,7 @@ You could end up accidentally using two class name generators in a variety of sc
409409
- You are using a bundler and it is splitting code in a way that causes multiple class name generator instances to be created.
410410

411411
:::success
412-
If you are using Webpack with the [SplitChunksPlugin](https://webpack.js.org/plugins/split-chunks-plugin/), try configuring the [`runtimeChunk` setting under `optimizations`](https://webpack.js.org/configuration/optimization/#optimization-runtimechunk).
412+
If you are using webpack with the [SplitChunksPlugin](https://webpack.js.org/plugins/split-chunks-plugin/), try configuring the [`runtimeChunk` setting under `optimizations`](https://webpack.js.org/configuration/optimization/#optimization-runtimechunk).
413413
:::
414414

415415
Overall, it's simple to recover from this problem by wrapping each Material UI application with [`StylesProvider`](/system/styles/api/#stylesprovider) components at the top of their component trees **and using a single class name generator shared among them**.

docs/data/material/getting-started/supported-platforms/supported-platforms.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ Have a look at the older [versions](https://mui.com/versions/) for backward comp
4040
Material UI requires a minimum version of TypeScript 4.7.
4141
This aims to match the policy of [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped), with the support of the versions of TypeScript that are less than two years old.
4242

43-
## Webpack
43+
## webpack
4444

45-
The minimium required version of webpack to bundle applications that use Material UI is v5. Webpack <= v4 can't bundle Material UI untranspiled as it uses features such as the [null coalscing operator (`??`)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing) and [optional chaining (`?.`)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining).
45+
The minimium required version of webpack to bundle applications that use Material UI is v5. webpack <= v4 can't bundle Material UI untranspiled as it uses features such as the [null coalscing operator (`??`)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing) and [optional chaining (`?.`)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining).

docs/data/material/guides/minimizing-bundle-size/minimizing-bundle-size.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ You are strongly discouraged to:
230230

231231
:::
232232

233-
A great way to use these bundles is to configure bundler aliases, for example with [Webpack's `resolve.alias`](https://webpack.js.org/configuration/resolve/#resolvealias):
233+
A great way to use these bundles is to configure bundler aliases, for example with [webpack's `resolve.alias`](https://webpack.js.org/configuration/resolve/#resolvealias):
234234

235235
```js
236236
{

docs/data/material/integrations/interoperability/interoperability.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ bundling solution people are using.
424424
```jsx title="CssModulesSlider.js"
425425
import * as React from 'react';
426426
import Slider from '@mui/material/Slider';
427-
// Webpack, Parcel or else will inject the CSS into the page
427+
// webpack, Parcel or else will inject the CSS into the page
428428
import styles from './CssModulesSlider.module.css';
429429

430430
export default function CssModulesSlider() {
@@ -504,7 +504,7 @@ The following examples override the slider's `thumb` style in addition to the cu
504504

505505
```jsx title="CssModulesSliderDeep1.js"
506506
import * as React from 'react';
507-
// Webpack, Parcel or else will inject the CSS into the page
507+
// webpack, Parcel or else will inject the CSS into the page
508508
import styles from './CssModulesSliderDeep1.module.css';
509509
import Slider from '@mui/material/Slider';
510510

@@ -536,7 +536,7 @@ The above demo relies on the [default `className` values](/system/styles/advance
536536

537537
```jsx title="CssModulesSliderDeep2.js"
538538
import * as React from 'react';
539-
// Webpack, Parcel or else will inject the CSS into the page
539+
// webpack, Parcel or else will inject the CSS into the page
540540
import styles from './CssModulesSliderDeep2.module.css';
541541
import Slider from '@mui/material/Slider';
542542

docs/data/material/integrations/styled-components/styled-components.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ If you're using yarn, you can configure it using a package resolution:
4747
### With npm
4848

4949
Because package resolutions aren't available with npm, you must update your bundler's config to add this alias.
50-
The example below shows how to do this with Webpack:
50+
The example below shows how to do this with webpack:
5151

5252
```diff title="webpack.config.js"
5353
module.exports = {

docs/data/material/migration/migration-v4/troubleshooting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ In this specific example, you would need to bump the version of `@mui/x-data-gri
3636

3737
## Storybook and Emotion
3838

39-
If your project uses Storybook v6.x, you will need to update the `.storybook/main.js` Webpack config to use the most recent version of Emotion:
39+
If your project uses Storybook v6.x, you will need to update the `.storybook/main.js` webpack config to use the most recent version of Emotion:
4040

4141
```js
4242
// .storybook/main.js

docs/data/material/migration/upgrade-to-v6/migrating-to-pigment-css.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ It can work alongside Emotion to ease the migration process, but it is recommend
2121

2222
Pigment CSS can be used with one of the following frameworks:
2323

24-
- [Next.js App Router](https://nextjs.org/docs/app) with Webpack v5 (Turbopack is not supported yet)
24+
- [Next.js App Router](https://nextjs.org/docs/app) with webpack v5 (Turbopack is not supported yet)
2525
- [Vite](https://vite.dev/)
2626

2727
## Installation

docs/mui-vale.zip

51 Bytes
Binary file not shown.

docs/mui-vale/styles/MUI/CorrectReferenceAllCases.yml

+1
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ swap:
3636
'Codesandbox ': CodeSandbox
3737
code sandbox: CodeSandbox
3838
Stackblitz: StackBlitz
39+
Webpack: webpack # https://twitter.com/wSokra/status/855800490713649152

docs/pages/blog/2020-developer-survey-results.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ section.
279279

280280
### 18. Which JavaScript framework are you using, if any?
281281

282-
<img src="/static/blog/2020-survey/18.png" style="width: 796px; margin-top: 16px; margin-bottom: 8px;" alt="Pie chart: 57.34% Create React App, 16.40% Custom Webpack, 12.35% Next.js, 5.40% Gatsby, 8.51% Other." />
282+
<img src="/static/blog/2020-survey/18.png" style="width: 796px; margin-top: 16px; margin-bottom: 8px;" alt="Pie chart: 57.34% Create React App, 16.40% Custom webpack, 12.35% Next.js, 5.40% Gatsby, 8.51% Other." />
283283

284284
### 19. What styling system are you using?
285285

docs/pages/blog/2021-developer-survey-results.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ These results are very different from last year—TypeScript took off, and it's
648648

649649
### Which framework are you using, if any?
650650

651-
<img src="/static/blog/2021-developer-survey-results/21.png" style="width: 796px; margin-top: 16px; margin-bottom: 8px;" alt="Create React App: 62.4%; Next.js: 21.9%; Custom Webpack: 10.7%; None: 2.6%; Gatsby: 0.9%; Other: 1.5%" />
651+
<img src="/static/blog/2021-developer-survey-results/21.png" style="width: 796px; margin-top: 16px; margin-bottom: 8px;" alt="Create React App: 62.4%; Next.js: 21.9%; Custom webpack: 10.7%; None: 2.6%; Gatsby: 0.9%; Other: 1.5%" />
652652

653653
<p class="blog-description">1497 out of 1589 answered.</p>
654654

docs/pages/blog/material-ui-v1-is-out.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ We want Material UI to become whatever is generally useful for application deve
4343
We know the ease of use is a critical part of user acquisition. The more users we have, the more likely we can make the project sustainable. Improving the ease of use comes in different flavors:
4444

4545
- **Onboarding**. We have reduced the onboarding friction as much as possible. We know the onboarding is a critical step for user acquisition. The onboarding friction comes in different flavors:
46-
We have reduced the number of installation steps needed. It should be as simple as 1. npm install @mui/material and 2. import Button from '@mui/material/Button'; . We don't ask for polyfill, custom Webpack plugin or any specific build tool. The usage of MuiThemeProvider is no longer mandatory.
46+
We have reduced the number of installation steps needed. It should be as simple as 1. npm install @mui/material and 2. import Button from '@mui/material/Button'; . We don't ask for polyfill, custom webpack plugin or any specific build tool. The usage of MuiThemeProvider is no longer mandatory.
4747

4848
- **Examples**. We are hosting [example projects](https://github.com/mui/material-ui/tree/master/examples) with the most popular solutions to start a project: [create-react-app](https://github.com/facebook/create-react-app), [Next.js](https://github.com/vercel/next.js), [Gatsby](https://github.com/gatsbyjs/gatsby), and CDN.
4949

docs/pages/blog/mui-x-v7-beta.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ While string values remain compatible for these types, any updates to the `filte
7474

7575
### Smaller bundle size
7676

77-
The introduction of a separate entry point for locales has significantly reduced the bundle size of the barrel index when tree-shaking isn't operational (for example Webpack in dev mode).
77+
The introduction of a separate entry point for locales has significantly reduced the bundle size of the barrel index when tree-shaking isn't operational (for example webpack in dev mode).
7878

7979
For example with the `@mui/x-data-grid` npm package, this change led to a reduction of approximately 22% – shrinking the bundle size from [114.2kB](https://bundlephobia.com/package/@mui/[email protected]) to [88.5kB](https://bundlephobia.com/package/@mui/[email protected]).
8080

0 commit comments

Comments
 (0)