Skip to content

Commit

Permalink
Drop UMD mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Nov 25, 2023
1 parent 5dcefbe commit 3757120
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ This repo uses Yarn 3 for all package management. Please ensure that Yarn 1.x is

#### Building Redux

Running the `build` task will create a CommonJS module-per-module build, a ES Modules build and a UMD build.
Running the `build` task will build the artifacts into the `./dist` folder

```sh
yarn build
Expand Down
2 changes: 0 additions & 2 deletions docs/faq/General.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ Redux is written using modern JS syntax (ES2020), but the code is fairly simple.

If you need to target older browsers, please transpile it yourself.

. You should be able to use it regardless of your JavaScript build process. Redux also offers a UMD build that can be used directly without any build process at all.

The [counter-vanilla](https://github.com/reduxjs/redux/tree/master/examples/counter-vanilla) example demonstrates basic ES5 usage with Redux included as a `<script>` tag. As the relevant pull request says:

> The new Counter Vanilla example is aimed to dispel the myth that Redux requires Webpack, React, hot reloading, sagas, action creators, constants, Babel, npm, CSS modules, decorators, fluent Latin, an Egghead subscription, a PhD, or an Exceeds Expectations O.W.L. level.
Expand Down
2 changes: 1 addition & 1 deletion docs/introduction/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ npm install redux
yarn add redux
```

It is also available as a precompiled UMD package that defines a `window.Redux` global variable. The UMD package can be used as a [`<script>` tag](https://unpkg.com/redux/dist/redux.js) directly.
The package includes a precompiled ESM build that can be used as a [`<script type="module">` tag](https://unpkg.com/redux/dist/redux.browser.mjs) directly in the browser.

For more details, see the [Installation](Installation.md) page.

Expand Down
2 changes: 1 addition & 1 deletion docs/introduction/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ npm install @reduxjs/toolkit
yarn add @reduxjs/toolkit
```

It's also available as a UMD build, which can be loaded from [the `dist` folder on unpkg](https://unpkg.com/@reduxjs/toolkit/dist/). The UMD builds make Redux Toolkit available as a `window.RTK` global variable.
The package includes a precompiled ESM build that can be used as a [`<script type="module">` tag](https://unpkg.com/redux/dist/redux.browser.mjs) directly in the browser.

## Complementary Packages

Expand Down
2 changes: 0 additions & 2 deletions docs/tutorials/fundamentals/part-5-ui-and-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ The official [**React-Redux UI bindings library**](https://react-redux.js.org) i
npm install react-redux
```

(If you don't use npm, you may grab the latest UMD build from unpkg (either a [development](https://unpkg.com/react-redux@latest/dist/react-redux.js) or a [production](https://unpkg.com/react-redux@latest/dist/react-redux.min.js) build). The UMD build exports a global called `window.ReactRedux` if you add it to your page via a `<script>` tag.)

For this tutorial, we'll cover the most important patterns and examples you need to use React and Redux together, and see how they work in practice as part of our todo app.

:::info
Expand Down

0 comments on commit 3757120

Please sign in to comment.