From 190829e3856166dda3084d9598414037f7f9333f Mon Sep 17 00:00:00 2001 From: Evilebot Tnawi Date: Mon, 25 Nov 2019 17:14:20 +0300 Subject: [PATCH] docs: fix the description of the `esModule` option (#348) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 97f5b6f..ca9f27f 100644 --- a/README.md +++ b/README.md @@ -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**