Skip to content

Commit 491d662

Browse files
jleteyjohno
authored andcommitted
chore(gatsby): Add deprecation msg for __experimentalThemes (#17534)
Co-Authored-By: John Otander <[email protected]>
1 parent ab4dd1d commit 491d662

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/gatsby/src/bootstrap/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ module.exports = async (args: BootstrapArgs) => {
8888

8989
// theme gatsby configs can be functions or objects
9090
if (config && config.__experimentalThemes) {
91-
// TODO: deprecation message for old __experimentalThemes
91+
report.warn(
92+
`The gatsby-config key "__experimentalThemes" has been deprecated. Please use the "plugins" key instead.`
93+
)
9294
const themes = await loadThemes(config, { useLegacyThemes: true })
9395
config = themes.config
9496

0 commit comments

Comments
 (0)