Skip to content

Commit 1a32958

Browse files
authored
fix(gatsby-plugin-netlify-cms): use friendly-errors-webpack-plugin package that satisfies webpack@5 peerDependency (#31446)
1 parent b46dc5f commit 1a32958

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

packages/gatsby-plugin-netlify-cms/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/gatsbyjs/gatsby/issues"
88
},
99
"dependencies": {
10-
"@pieh/friendly-errors-webpack-plugin": "1.7.0-chalk-2",
10+
"@soda/friendly-errors-webpack-plugin": "1.8.0",
1111
"copy-webpack-plugin": "^7.0.0",
1212
"html-webpack-plugin": "^5.3.1",
1313
"html-webpack-tags-plugin": "^3.0.1",

packages/gatsby-plugin-netlify-cms/src/gatsby-node.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { mapValues, isPlainObject, trim } from "lodash"
33
import webpack from "webpack"
44
import HtmlWebpackPlugin from "html-webpack-plugin"
55
import MiniCssExtractPlugin from "mini-css-extract-plugin"
6-
// TODO: swap back when https://github.com/geowarin/friendly-errors-webpack-plugin/pull/86 lands
7-
import FriendlyErrorsPlugin from "@pieh/friendly-errors-webpack-plugin"
6+
import FriendlyErrorsPlugin from "@soda/friendly-errors-webpack-plugin"
87
import CopyPlugin from "copy-webpack-plugin"
98
import HtmlWebpackTagsPlugin from "html-webpack-tags-plugin"
109

yarn.lock

+13-12
Original file line numberDiff line numberDiff line change
@@ -3595,15 +3595,6 @@
35953595
resolved "https://registry.yarnpkg.com/@open-draft/until/-/until-1.0.3.tgz#db9cc719191a62e7d9200f6e7bab21c5b848adca"
35963596
integrity sha512-Aq58f5HiWdyDlFffbbSjAlv596h/cOnt2DO1w3DOC7OJ5EHs0hd/nycJfiu9RJbT6Yk6F1knnRRXNSpxoIVZ9Q==
35973597

3598-
3599-
version "1.7.0-chalk-2"
3600-
resolved "https://registry.yarnpkg.com/@pieh/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-1.7.0-chalk-2.tgz#2e9da9d3ade9d18d013333eb408c457d04eabac0"
3601-
dependencies:
3602-
chalk "^2.4.2"
3603-
error-stack-parser "^2.0.0"
3604-
string-width "^2.0.0"
3605-
strip-ansi "^3"
3606-
36073598
"@pmmmwh/react-refresh-webpack-plugin@^0.4.3":
36083599
version "0.4.3"
36093600
resolved "https://registry.yarnpkg.com/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.4.3.tgz#1eec460596d200c0236bf195b078a5d1df89b766"
@@ -3943,6 +3934,16 @@
39433934
dependencies:
39443935
"@sinonjs/commons" "^1.7.0"
39453936

3937+
3938+
version "1.8.0"
3939+
resolved "https://registry.yarnpkg.com/@soda/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-1.8.0.tgz#84751d82a93019d5c92c0cf0e45ac59087cd2240"
3940+
integrity sha512-RLotfx6k1+nfLacwNCenj7VnTMPxVwYKoGOcffMFoJDKM8tXzBiCN0hMHFJNnoAojduYAsxuiMm0EOMixgiRow==
3941+
dependencies:
3942+
chalk "^2.4.2"
3943+
error-stack-parser "^2.0.2"
3944+
string-width "^2.0.0"
3945+
strip-ansi "^5"
3946+
39463947
"@styled-system/background@^5.1.2":
39473948
version "5.1.2"
39483949
resolved "https://registry.yarnpkg.com/@styled-system/background/-/background-5.1.2.tgz#75c63d06b497ab372b70186c0bf608d62847a2ba"
@@ -10889,7 +10890,7 @@ error-ex@^1.2.0, error-ex@^1.3.1:
1088910890
dependencies:
1089010891
is-arrayish "^0.2.1"
1089110892

10892-
error-stack-parser@^2.0.0, error-stack-parser@^2.0.6:
10893+
error-stack-parser@^2.0.2, error-stack-parser@^2.0.6:
1089310894
version "2.0.6"
1089410895
resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-2.0.6.tgz#5a99a707bd7a4c58a797902d48d82803ede6aad8"
1089510896
integrity sha512-d51brTeqC+BHlwF0BhPtcYgF5nlzf9ZZ0ZIUQNZpc9ZB9qw5IJ2diTrBY9jlCJkTLITYPjmiX6OWCwH+fuyNgQ==
@@ -25735,7 +25736,7 @@ [email protected], strip-ansi@^6.0.0:
2573525736
dependencies:
2573625737
ansi-regex "^5.0.0"
2573725738

25738-
strip-ansi@^3, strip-ansi@^3.0.0, strip-ansi@^3.0.1:
25739+
strip-ansi@^3.0.0, strip-ansi@^3.0.1:
2573925740
version "3.0.1"
2574025741
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
2574125742
dependencies:
@@ -25747,7 +25748,7 @@ strip-ansi@^4.0.0:
2574725748
dependencies:
2574825749
ansi-regex "^3.0.0"
2574925750

25750-
strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0:
25751+
strip-ansi@^5, strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0:
2575125752
version "5.2.0"
2575225753
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae"
2575325754
dependencies:

0 commit comments

Comments
 (0)