Skip to content

Commit 4803306

Browse files
authored
1 parent a1e2b90 commit 4803306

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/generators/web/utils/bundle.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import { lazy } from '../../../utils/misc.mjs';
1111
// Resolve node_modules relative to this package (doc-kit), not cwd.
1212
// We do this by finding where one of our dependencies (preact) is stored,
1313
// and using it's NODE_MODULES
14+
//
15+
// FIXME(@avivkeller): When our CI (in Node.js Core) supports v22.x,
16+
// this lazy-loading solution can be replaced by a simple import. For that
17+
// matter, glob can also be replaced in other files throughout this repo.
1418
const getNodeModules = lazy(async () => {
1519
const { findPackageJSON } = await import('node:module');
1620

0 commit comments

Comments
 (0)