Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
docs: fix the description of the esModule option (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored Nov 25, 2019
1 parent f1b071c commit 190829e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,12 @@ module.exports = {
### `esModule`

Type: `Boolean`
Default: `false`
Default: `true`

By default, `file-loader` generates JS modules that use the ES modules syntax.
There are some cases in which using ES modules is beneficial, like in the case of [module concatenation](https://webpack.js.org/plugins/module-concatenation-plugin/) and [tree shaking](https://webpack.js.org/guides/tree-shaking/).

You can enable a CommonJS module using:
You can enable a CommonJS module syntax using:

**webpack.config.js**

Expand Down

0 comments on commit 190829e

Please sign in to comment.