Add esModule to the plugin options interface of mini-css-extract-plugin (#41185)

* Add esModule to the plugin options interface

* Fix jsdoc indentation
This commit is contained in:
Thomas Deinhamer 2019-12-23 17:00:29 +01:00 committed by Andrew Branch
parent da9a21ba57
commit 8a0e74bb2f

View File

@ -1,4 +1,4 @@
// Type definitions for mini-css-extract-plugin 0.8
// Type definitions for mini-css-extract-plugin 0.9
// Project: https://github.com/webpack-contrib/mini-css-extract-plugin
// Definitions by: JounQin <https://github.com/JounQin>
// Katsuya Hino <https://github.com/dobogo>
@ -34,6 +34,12 @@ declare namespace MiniCssExtractPlugin {
* disabled by setting this flag to true for the plugin.
*/
ignoreOrder?: boolean;
/**
* By default, mini-css-extract-plugin generates JS modules that use the CommonJS
* modules syntax. There are some cases in which using ES modules is beneficial,
* like in the case of module concatenation and tree shaking.
*/
esModule?: boolean;
}
}