Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove schema updating from bootstrap #11131

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions packages/gatsby/src/bootstrap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@ module.exports = async (args: BootstrapArgs) => {
await require(`../schema`).build({ parentSpan: activity.span })
activity.end()

require(`../schema/type-conflict-reporter`).printConflicts()

// Collect resolvable extensions and attach to program.
const extensions = [`.mjs`, `.js`, `.jsx`, `.wasm`, `.json`]
// Change to this being an action and plugins implement `onPreBootstrap`
Expand Down Expand Up @@ -441,16 +443,6 @@ module.exports = async (args: BootstrapArgs) => {
await apiRunnerNode(`onPreExtractQueries`, { parentSpan: activity.span })
activity.end()

// Update Schema for SitePage.
activity = report.activityTimer(`update schema`, {
parentSpan: bootstrapSpan,
})
activity.start()
await require(`../schema`).build({ parentSpan: activity.span })
activity.end()

require(`../schema/type-conflict-reporter`).printConflicts()

// Extract queries
activity = report.activityTimer(`extract queries from components`, {
parentSpan: bootstrapSpan,
Expand Down