Copy fragments from build files to ease up developing #5728
Labels
help wanted
Issue with a clear description that the community can help with.
type: bug
An issue or pull request relating to a bug in Gatsby
Description
When changing Gatsby's GraphQL fragments and testing these changes using
gatsby-dev-cli
, the changed fragments need to be manually copied from Gatsby'ssrc
directories. This should be done automatically.Note that this is a fairly rare bug that can be worked around. It'd be nice to fix but it's not essential as it only affects people editing Gatsby's built in GraphQL fragments.
Refs: #5698
Refs: #5659 (comment)
Steps to reproduce
gatsby-transformer-sharp/src/fragments.js
gatsby-dev
to use your modified Gatsby on a test siteSteps to fix manually
/projects/gatsby-repo/packages/gatsby-transformer-sharp/src/fragments.js
to/projects/gatsby-test-site/node_modules/gatsby-transformer-sharp/src/fragments.js
.cache
directorygatsby develop
and note that the correct fragments are now being usedExpected result
The fragments should be updated automatically.
Actual result
The fragments have to be updated manually.
The text was updated successfully, but these errors were encountered: