Skip to content

Commit 07b329d

Browse files
committed
move react-helmet to optional dependencies
Signed-off-by: Dmitriy Nevzorov <[email protected]>
1 parent 66b2660 commit 07b329d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const SpanishAboutLink = () => (
224224

225225
`Helmet` component is identical to [`gatsby-plugin-react-helmet`](https://www.gatsbyjs.org/packages/gatsby-plugin-react-helmet) component but also provides language related metatags (alternative and canonical links)
226226

227-
**Note!** You need to provide `siteUrl` in plugin options for it to work properly
227+
**Note!** To use it you need to have `react-helmet` dependency installed. You also need to provide `siteUrl` in plugin options for it to work properly.
228228

229229
### `I18nextContext`
230230

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"@babel/cli": "^7.10.1",
4646
"@types/bluebird": "^3.5.32",
4747
"@types/react": "^16.9.35",
48-
"@types/react-helmet": "^6.0.0",
4948
"babel-preset-gatsby-package": "^0.4.2",
5049
"gatsby": "^2.22.12",
5150
"husky": "^4.2.5",
@@ -54,20 +53,23 @@
5453
"release-it": "^13.6.1",
5554
"typescript": "^3.9.3",
5655
"i18next": "^19.4.5",
57-
"react-i18next": "^11.5.0"
56+
"react-i18next": "^11.5.0",
57+
"@types/react-helmet": "^6.0.0"
5858
},
5959
"dependencies": {
6060
"bluebird": "^3.7.2",
6161
"browser-lang": "^0.1.0",
62-
"glob": "^7.1.6",
63-
"react-helmet": "^6.0.0"
62+
"glob": "^7.1.6"
6463
},
6564
"peerDependencies": {
6665
"gatsby": "^2.2.0",
6766
"react": "^16.12.0",
6867
"i18next": "^19.4.5",
6968
"react-i18next": "^11.5.0"
7069
},
70+
"optionalDependencies": {
71+
"react-helmet": "^6.0.0"
72+
},
7173
"husky": {
7274
"hooks": {
7375
"pre-commit": "pretty-quick --staged"

0 commit comments

Comments
 (0)