From 212d3e4f37c8dfac89cd1639ce03c3ef6ea10b3f Mon Sep 17 00:00:00 2001 From: Peter van der Zee Date: Tue, 5 Jan 2021 16:25:06 +0100 Subject: [PATCH] Undo the await part, can be separate PR --- packages/gatsby-plugin-mdx/gatsby/on-create-node.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/gatsby-plugin-mdx/gatsby/on-create-node.js b/packages/gatsby-plugin-mdx/gatsby/on-create-node.js index 018ac7f77ba18..8203ad71dfa82 100644 --- a/packages/gatsby-plugin-mdx/gatsby/on-create-node.js +++ b/packages/gatsby-plugin-mdx/gatsby/on-create-node.js @@ -1,4 +1,4 @@ -const fs = require(`fs-extra`) +const fs = require(`fs`) const path = require(`path`) const babel = require(`@babel/core`) const { createContentDigest } = require(`gatsby-core-utils`) @@ -201,7 +201,7 @@ export default { ${scopeIdentifiers.join(`, `)} }` `${createContentDigest(scopeFileContent)}.js` ) - await fs.writeFile(filePath, scopeFileContent) + fs.writeFileSync(filePath, scopeFileContent) } const declare = require(`@babel/helper-plugin-utils`).declare