From 0aa83a16a9c7ed60384a71848353a5431a65f61c Mon Sep 17 00:00:00 2001 From: Stefan Probst Date: Thu, 17 Jan 2019 14:07:40 +0100 Subject: [PATCH] Remove schema updating from bootstrap --- packages/gatsby/src/bootstrap/index.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/gatsby/src/bootstrap/index.js b/packages/gatsby/src/bootstrap/index.js index dc81466d4f103..327add12af360 100644 --- a/packages/gatsby/src/bootstrap/index.js +++ b/packages/gatsby/src/bootstrap/index.js @@ -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` @@ -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,