Skip to content

Commit

Permalink
update the guide
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed Apr 19, 2024
1 parent d2f619d commit 3115813
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ The `legacy` bundle that used to support old browsers like IE 11 is no longer i
If you need support for IE 11, you will need to keep using the latest version of the `v6` release.
:::

### Drop webpack 4 support
### Drop Webpack 4 support

Dropping old browsers support also means that we no longer transpile some features that are natively supported by modern browsers – like [Nullish Coalescing](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).

These features are not supported by webpack 4, so if you are using webpack 4, you will need to transpile these features yourself or upgrade to webpack 5.
These features are not supported by Webpack 4, so if you are using Webpack 4, you will need to transpile these features yourself or upgrade to Webpack 5.

Here is an example of how you can transpile these features for webpack 4 using `@babel/preset-env` plugin:
Here is an example of how you can transpile these features on Webpack 4 using the `@babel/preset-env` plugin:

```diff
// webpack.config.js
Expand Down

0 comments on commit 3115813

Please sign in to comment.