Skip to content

Commit

Permalink
chore: update comment for extra clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaiahByDayah committed Jan 31, 2024
1 parent 6cf8026 commit 37af38f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ export const mergeableImportFlavors = [
importFlavorType,
] as const;

// NOTE: 'test' is not included in `builtinModules` so explicitly check for "node:test"
// REF: https://github.com/nodejs/node/issues/42785
export const BUILTIN_MODULES_REGEX_STR = `(^(?:node:)?(?:${builtinModules.join(
'|',
)})$)|(^node:test$)`; // NOTE: 'test' is not included in `builtinModules` so explicitly check for "node:test"
)})$)|(^node:test$)`;

export const BUILTIN_MODULES_SPECIAL_WORD = '<BUILTIN_MODULES>';
/**
Expand Down

0 comments on commit 37af38f

Please sign in to comment.