You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a new major version that contains several backwards-compatibility breaks.
8
+
9
+
### BC Breaks
10
+
11
+
The following dependencies were upgraded a major version. It's unlikely
12
+
these will cause problems, unless you were further configuring this part
13
+
of Encore:
14
+
15
+
*`clean-webpack-plugin` Version `3` to `4`: dropped old Node & Webpack version support
16
+
*`css-loader` Version `5` to `6`: dropped old Node version support & [CHANGELOG](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md#-breaking-changes)
17
+
*`css-minimizer-webpack-plugin` Version `2` to `3`: dropped old Node version support
18
+
*`loader-utils` REMOVED
19
+
*`mini-css-extract-plugin` Version `1.5` to `2.2.1`: dropped old Node & Webpack version support & [CHANGELOG](https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/CHANGELOG.md#-breaking-changes)
20
+
*`pretty-error` Version `3.0` to `4.0`: dropped old Node version support
21
+
*`resolve-url-loader` Version `3.0` to `5.0`: dropped old Node version support, requires postcss `^8.0`, remove `rework` engine & [CHANGELOG](https://github.com/bholloway/resolve-url-loader/blob/v4-maintenance/packages/resolve-url-loader/CHANGELOG.md)
22
+
*`style-loader` Version `2` to `3`: dropped old Node and Webpack version support & [CHANGELOG](https://github.com/webpack-contrib/style-loader/blob/master/CHANGELOG.md#-breaking-changes)
23
+
*`yargs-parser` Version `20.2` to `21`: dropped old Node version support
24
+
25
+
Additionally, Encore changed the supported versions of the following packages,
26
+
which you may have installed to enable extra features:
27
+
28
+
*`eslint` Minimum version increased from `7` to `8`
29
+
*`eslint-webpack-plugin` Minimum version increased from `2.5` to `3`
30
+
*`fork-ts-checker-webpack-plugin` Minimum version increased from `5` to `6`[CHANGELOG](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/releases/tag/v6.0.0)
31
+
*`less-loader` Minimum version increased from `7` to `10`
32
+
*`postcss-loader` Minimum version increased from `4` to `6`
33
+
*`preact` Minimum version increased from `8` to `10`[CHANGELOG](https://github.com/preactjs/preact/releases/tag/10.0.0)
34
+
*`sass-loader` Minimum version increased from `9` to `12`
35
+
*`stylus` Minimum version increased from `0.54` to `0.56`
36
+
*`stylus-loader` Minimum version increased from `3` to `6`[CHANGELOG](https://github.com/webpack-contrib/stylus-loader/blob/master/CHANGELOG.md#400-2020-09-29)
37
+
*`vue-loader` Minimum version increased from `16` to `17`[CHANGELOG](https://github.com/vuejs/vue-loader/blob/next/CHANGELOG.md#1700-2021-12-12)
38
+
39
+
* Removed `Encore.enableEslintLoader()`: use `Encore.enableEslintPlugin()`.
40
+
41
+
* If using `enableEslintPlugin()` with the `@babel/eslint-parser` parser,
42
+
you may now need to create an external Babel configuration file. To see
43
+
an example, temporarily delete your `.eslintrc.js` file and run Encore.
44
+
The error will show you a Babel configuration file you can use.
45
+
46
+
* With `configureDefinePlugin()`, the `options['process.env']` key format
47
+
passed to the callback has changed (see #960). If you are using `configureDefinePlugin()`
48
+
to add more items to `process.env`, your code will need to change:
logger.warning('The "callback" argument of configureBabel() will not be used because your app already provides an external Babel configuration (e.g. a ".babelrc" or "babel.config.js" file or "babel" key in "package.json"). Use null as a first argument to remove that warning.');
413
+
thrownewError('The "callback" argument of configureBabel() will not be used because your app already provides an external Babel configuration (e.g. a ".babelrc" or "babel.config.js" file or "babel" key in "package.json"). Use null as the first argument to remove this error.');
logger.deprecation('enableEslintLoader: Extending from a configuration is deprecated, please use a configuration file instead. See https://eslint.org/docs/user-guide/configuring for more information.');
0 commit comments