-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix plugins not running
gatsby-browser.js
(#4329)
* Fix DOM nesting error validateDOMNesting(...): <div> cannot appear as a descendant of <p> * Fix plugins that don't export any gatsby-browser.js APIs * Remove unused imports * Add missing links
- Loading branch information
1 parent
fc2180e
commit afa6a5c
Showing
6 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import typography from "gatsby-plugin-typography/.cache/typography.js" | ||
|
||
// Hot reload typography in development. | ||
if (process.env.NODE_ENV !== `production`) { | ||
typography.injectStyles() | ||
exports.onClientEntry = () => { | ||
// Hot reload typography in development. | ||
if (process.env.NODE_ENV !== `production`) { | ||
typography.injectStyles() | ||
} | ||
} |