Skip to content

Commit

Permalink
Undo the await part, can be separate PR
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdz committed Jan 5, 2021
1 parent 7088052 commit 212d3e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-mdx/gatsby/on-create-node.js
Original file line number Diff line number Diff line change
@@ -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`)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 212d3e4

Please sign in to comment.