Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: load plugin object style without options object (#9647)
<!-- Q. Which branch should I use for my pull request? A. Use `master` branch (probably). Q. Which branch if my change is a bug fix for Gatsby v1? A. In this case, you should use the `v1` branch Q. Which branch if I'm still not sure? A. Use `master` branch. Ask in the PR if you're not sure and a Gatsby maintainer will be happy to help :) Note: We will only accept bug fixes for Gatsby v1. New features should be added to Gatsby v2. Learn more about contributing: https://www.gatsbyjs.org/docs/how-to-contribute/ --> Fixes issue at the end of #9559, e.g.: ```javascript module.exports = { plugins: [ { resolve: 'gatsby-plugin-react-helmet' } ] } ``` where the plugin is loaded using object syntax but no `options` object is defined. This wasn't caught by the unit test because the issue was occurring after the early out when it's the `___TEST___` plugin.
- Loading branch information
Showing
2 changed files
with
27 additions
and
16 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