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
Let's say I use a theme gatsby-theme-something which includes a plugin [email protected]. The plugin comes with some config options in the theme's gatsby-config.js. Now I include the theme in my website.
First scenario: I also include the plugin in my site, but at a newer version, say [email protected], with the same config as in the theme. Will Gatsby deduplicate the plugin and which version of the plugin will it use?
Second scenario: I include the plugin at a newer version, say [email protected], and with different options Will Gatsby process the plugin twice? And at which version?
Where can I find out more on how Gatsby consolidates different gatsby-config.js files when I use one or more themes, possibly nested? I'm having a hard time understanding how Gatsby consolidates the plugins arrays from different themes and how it handles conflicting versions of the same plugins?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say I use a theme
gatsby-theme-something
which includes a plugin[email protected]
. The plugin comes with some config options in the theme'sgatsby-config.js
. Now I include the theme in my website.First scenario: I also include the plugin in my site, but at a newer version, say
[email protected]
, with the same config as in the theme. Will Gatsby deduplicate the plugin and which version of the plugin will it use?Second scenario: I include the plugin at a newer version, say
[email protected]
, and with different options Will Gatsby process the plugin twice? And at which version?Where can I find out more on how Gatsby consolidates different
gatsby-config.js
files when I use one or more themes, possibly nested? I'm having a hard time understanding how Gatsby consolidates theplugins
arrays from different themes and how it handles conflicting versions of the same plugins?Beta Was this translation helpful? Give feedback.
All reactions