Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(www): update storybook docs to prefer Gatsby ES6 module in webpac…
…k config (#10669) The steps in the current documentation for using Storybook with Gatsby (https://www.gatsbyjs.org/docs/visual-testing-with-storybook/) don't work because importing Link from gatsby in any component breaks. This is because several internals get required as a result of requiring anything from the default commonjs build (which would have been tree shaken before #9123) and eventually require a non-existent `pages.json`. More details are at #10668 This pull request updates the documentation with a quick fix (setting resolve.mainFields in the storybook webpack config override thereby _preferring_ es6 gatsby over commonjs) Fixes #10662
- Loading branch information