Skip to content

Commit 0f1e665

Browse files
committed
Merge tag 'v2.4.4'
chore(release): 2.4.4 # Conflicts: # package-lock.json # package.json # test/manual/webpack.config.js
2 parents 9aa98c9 + 0c286f3 commit 0f1e665

File tree

95 files changed

+23902
-5587
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+23902
-5587
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
root: true,
3-
parser: "babel-eslint",
3+
parser: "@babel/eslint-parser",
44
extends: ["@webpack-contrib/eslint-config-webpack", "prettier"],
55
};

.github/workflows/nodejs.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,21 +90,19 @@ jobs:
9090

9191
- name: Run tests for webpack version ${{ matrix.webpack-version }}
9292
run: npm run test:coverage -- --ci
93-
env:
94-
EXPERIMENTAL_USE_IMPORT_MODULE: "false"
9593

9694
- name: Submit coverage data to codecov
9795
uses: codecov/codecov-action@v1
9896
with:
9997
token: ${{ secrets.CODECOV_TOKEN }}
10098

101-
test-new-api:
102-
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack latest, experimentalUseImportModule
99+
test-old-api:
100+
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack latest, old API
103101

104102
strategy:
105103
matrix:
106104
os: [ubuntu-latest, windows-latest, macos-latest]
107-
node-version: [12.x, 14.x, 16.x]
105+
node-version: [12.x, 14.x, 16.x, 17.x]
108106

109107
runs-on: ${{ matrix.os }}
110108

@@ -138,7 +136,7 @@ jobs:
138136
- name: Run tests for webpack version latest with experimentalUseImportModule
139137
run: npm run test:coverage -- --ci
140138
env:
141-
EXPERIMENTAL_USE_IMPORT_MODULE: "true"
139+
OLD_API: "true"
142140

143141
- name: Submit coverage data to codecov
144142
uses: codecov/codecov-action@v2

CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,51 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [2.4.4](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.4.3...v2.4.4) (2021-11-04)
6+
7+
8+
### Bug Fixes
9+
10+
* crash with `[contenthash]` ([#869](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/869)) ([57ad127](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/57ad1274328512aebb20fa3b2c27fb9321f835a7))
11+
* runtime path in modules without context ([#866](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/866)) ([e2e30b2](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/e2e30b280d51f313e3ac566af3b839e580b22ef5))
12+
13+
### [2.4.3](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.4.2...v2.4.3) (2021-10-21)
14+
15+
16+
### Bug Fixes
17+
18+
* small perf improvement ([#860](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/860)) ([8c4846b](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/8c4846b3a55770cb7286b1f092e619204503ed7f))
19+
20+
### [2.4.2](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.4.1...v2.4.2) (2021-10-07)
21+
22+
23+
### Bug Fixes
24+
25+
* endless apply of loaders, leading to memory allocation failure ([#849](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/849)) ([94ad699](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/94ad699baa1805a0646e7db1d69eb5997df6c8db))
26+
27+
### [2.4.1](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.4.0...v2.4.1) (2021-10-05)
28+
29+
30+
### Bug Fixes
31+
32+
* crash with multiple webpack versions ([#845](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/845)) ([b4431cb](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/b4431cb60a6eadcf8c2b614f494faf899c73aaa0))
33+
34+
## [2.4.0](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.3.0...v2.4.0) (2021-10-05)
35+
36+
### Performance
37+
38+
* migrate on new API, this improves performance and memory usage a lot, you need to have at least webpack `5.52.0` (recommended latest stable), for older versions the old API will be used (except explicit enabling of the `experimentalUseImportModule` option)
39+
40+
41+
### Features
42+
43+
* added support for `supports()` and `layer()` in `@import` at-rule ([#843](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/843)) ([e751080](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/e751080ad6a81f196d5c26fb79b3c69b9429a634))
44+
45+
46+
### Bug Fixes
47+
48+
* crash with the `exportLocalsConvention` option ([#844](https://github.com/webpack-contrib/mini-css-extract-plugin/issues/844)) ([0f8d501](https://github.com/webpack-contrib/mini-css-extract-plugin/commit/0f8d5015c95724b537ddc627758f67020d01ae0b))
49+
550
## [2.3.0](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.2.2...v2.3.0) (2021-09-11)
651

752

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ module.exports = {
8888
| **[`attributes`](#attributes)** | `{Object}` | `{}` | Adds custom attributes to the `link` tag for [non-initial (async)](https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks |
8989
| **[`linkType`](#linkType)** | `{String\|Boolean}` | `text/css` | Allows loading asynchronous chunks with a custom link type |
9090
| **[`runtime`](#runtime)** | `{Boolean}` | `true` | Allows to enable/disable the runtime generation |
91-
| **[`experimentalUseImportModule`](#experimentalUseImportModule)** | `{Boolean}` | `false` | Use an experimental webpack API to execute modules instead of child compilers |
91+
| **[`experimentalUseImportModule`](#experimentalUseImportModule)** | `{Boolean}` | `undefined` | Use an experimental webpack API to execute modules instead of child compilers |
9292

9393
#### `filename`
9494

@@ -301,13 +301,16 @@ module.exports = {
301301

302302
#### `experimentalUseImportModule`
303303

304-
Use an experimental webpack API to execute modules instead of child compilers.
304+
Type: `Boolean`
305+
Default: `undefined`
305306

306-
This improves performance and memory usage a lot, but isn't as stable as the normal approach.
307+
Enabled by default if not explicitly enabled (i.e. `true` and `false` allow you to explicitly control this option) and new API is available (at least webpack `5.52.0` is required).
308+
Boolean values are available since version `5.33.2`, but you need to enable `experiments.executeModule` (not required from webpack `5.52.0`).
307309

308-
When combined with `experiments.layers`, this adds a `layer` option to the loader options to specify the layer of the css execution.
310+
Use a new webpack API to execute modules instead of child compilers.
311+
This improves performance and memory usage a lot.
309312

310-
You need to have at least webpack 5.33.2.
313+
When combined with `experiments.layers`, this adds a `layer` option to the loader options to specify the layer of the css execution.
311314

312315
**webpack.config.js**
313316

@@ -317,6 +320,9 @@ const MiniCssExtractPlugin = require("mini-css-extract-plugin");
317320
module.exports = {
318321
plugins: [
319322
new MiniCssExtractPlugin({
323+
// You don't need this for `>= 5.52.0` due to the fact that this is enabled by default
324+
// Required only for `>= 5.33.2 & <= 5.52.0`
325+
// Not avaliable/unsafe for `<= 5.33.2`
320326
experimentalUseImportModule: true,
321327
}),
322328
],

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = (api) => {
1010
"@babel/preset-env",
1111
{
1212
targets: {
13-
node: "10.13.0",
13+
node: "12.13.0",
1414
},
1515
},
1616
],

0 commit comments

Comments
 (0)