Skip to content

Commit

Permalink
doc(README.md): fix a broken markdown link (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
loveDstyle committed Oct 21, 2021
1 parent 199c207 commit 052c07a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -252,7 +252,7 @@ You will need to exclude them form `babel-loader`.

### Top level function (IIFE) is still arrow (on Webpack 5)

That function is injected by Webpack itself _after_ running `babel-loader`. By default Webpack asumes that your target environment supports some ES2015 features, but you can overwrite this behavior using the `output.environment` Webpack option ([documentation]((https://webpack.js.org/configuration/output/#outputenvironment)).
That function is injected by Webpack itself _after_ running `babel-loader`. By default Webpack asumes that your target environment supports some ES2015 features, but you can overwrite this behavior using the `output.environment` Webpack option ([documentation](https://webpack.js.org/configuration/output/#outputenvironment)).

To avoid the top-level arrow function, you can use `output.environment.arrowFunction`:

Expand Down

0 comments on commit 052c07a

Please sign in to comment.