Skip to content

Commit 8f44086

Browse files
smurrayatworkpieh
authored andcommitted
fix(gatsby-plugin-sharp): Updates cpu core count path to corre… (#15833)
1 parent f660491 commit 8f44086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby-plugin-sharp/src/process-file.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ try {
2020
// Handle Sharp's concurrency based on the Gatsby CPU count
2121
// See: http://sharp.pixelplumbing.com/en/stable/api-utility/#concurrency
2222
// See: https://www.gatsbyjs.org/docs/multi-core-builds/
23-
const cpuCoreCount = require(`gatsby/dist/utils/cpu-core-count`)
23+
const cpuCoreCount = require(`gatsby/dist/utils/worker/cpu-core-count`)
2424
sharp.concurrency(cpuCoreCount())
2525
} catch {
2626
// if above throws error this probably means that used Gatsby version

0 commit comments

Comments
 (0)