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

Commit 190829e

Browse files
authoredNov 25, 2019
docs: fix the description of the esModule option (#348)
1 parent f1b071c commit 190829e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,12 @@ module.exports = {
378378
### `esModule`
379379

380380
Type: `Boolean`
381-
Default: `false`
381+
Default: `true`
382382

383383
By default, `file-loader` generates JS modules that use the ES modules syntax.
384384
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/).
385385

386-
You can enable a CommonJS module using:
386+
You can enable a CommonJS module syntax using:
387387

388388
**webpack.config.js**
389389

0 commit comments

Comments
 (0)
This repository has been archived.