Skip to content

Commit 5b10cbd

Browse files
committed
move to esm import
1 parent d4ec7e4 commit 5b10cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby/src/services/initialize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as fs from "fs-extra"
44
import { releaseAllMutexes } from "gatsby-core-utils/mutex"
55
import md5File from "md5-file"
66
import crypto from "crypto"
7-
import { globby as glob } from "globby"
87
import path from "path"
98
import telemetry from "gatsby-telemetry"
109

@@ -270,6 +269,7 @@ export async function initialize({
270269
? lmdbCacheDirExists
271270
: cacheJsonDirExists
272271

272+
const { globby: glob } = await import(`globby`)
273273
// For builds in case public dir exists, but cache doesn't, we need to clean up potentially stale
274274
// artifacts from previous builds (due to cache not being available, we can't rely on tracking of artifacts)
275275
if (

0 commit comments

Comments
 (0)