diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c097e63..ee8f1299 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,14 @@ ## 5.2.0 -* Add support for Webpack CLI ^6.0 by @Kocal in https://github.com/symfony/webpack-encore/pull/1367 -* Add support for babel-loader ^10.0 +* Add support for Webpack CLI ^6.0.0 + +* Add support for babel-loader ^10.0.0 + +* Add support for style-loader ^4.0.0 + +If you manually specified the option `insert`, now it can only be a selector or the path to the module. +Follow the [style-loader migration guide](https://github.com/webpack-contrib/style-loader/releases/tag/v4.0.0) to upgrade! ## 5.1.0 diff --git a/package.json b/package.json index 82caa2d3..ee9f935e 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "pretty-error": "^4.0.0", "resolve-url-loader": "^5.0.0", "semver": "^7.3.2", - "style-loader": "^3.3.0", + "style-loader": "^3.3.0 || ^4.0.0", "tapable": "^2.2.1", "terser-webpack-plugin": "^5.3.0", "tmp": "^0.2.1", diff --git a/yarn.lock b/yarn.lock index 1b6ad273..e2cd3b57 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7305,10 +7305,10 @@ strip-json-comments@^3.1.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== -style-loader@^3.3.0: - version "3.3.4" - resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-3.3.4.tgz#f30f786c36db03a45cbd55b6a70d930c479090e7" - integrity sha512-0WqXzrsMTyb8yjZJHDqwmnwRJvhALK9LfRtRc6B4UTWe8AijYLZYZ9thuJTZc2VfQWINADW/j+LiJnfy2RoC1w== +"style-loader@^3.3.0 || ^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-4.0.0.tgz#0ea96e468f43c69600011e0589cb05c44f3b17a5" + integrity sha512-1V4WqhhZZgjVAVJyt7TdDPZoPBPNHbekX4fWnCJL1yQukhCeZhJySUL+gL9y6sNdN95uEOS83Y55SqHcP7MzLA== stylehacks@^7.0.4: version "7.0.4"