From 1d9f5d95db03ae56e87f6d652a3a261ae7eecc18 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Wed, 28 Feb 2018 13:16:36 +0100 Subject: [PATCH] use slash on gatsby-browser and gatsby-ssr paths --- packages/gatsby/src/bootstrap/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/gatsby/src/bootstrap/index.js b/packages/gatsby/src/bootstrap/index.js index 2c2b5b9157242..89adc18bde96a 100644 --- a/packages/gatsby/src/bootstrap/index.js +++ b/packages/gatsby/src/bootstrap/index.js @@ -181,8 +181,8 @@ module.exports = async (args: BootstrapArgs) => { if (env === `ssr` && plugin.skipSSR === true) return undefined const envAPIs = plugin[`${env}APIs`] - if (envAPIs && Array.isArray(envAPIs) && envAPIs.length > 0 ) { - return path.join(plugin.resolve, `gatsby-${env}.js`) + if (envAPIs && Array.isArray(envAPIs) && envAPIs.length > 0) { + return slash(path.join(plugin.resolve, `gatsby-${env}.js`)) } return undefined }