Skip to content

Commit

Permalink
revert comment change
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz committed Nov 6, 2024
1 parent dbea9b0 commit 572b283
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ const BUN_BUILTIN_NAMESPACE = 'bun:'
// Some runtimes like Bun injects namespaced modules here, which is not a node builtin
const nodeBuiltins = builtinModules.filter((id) => !id.includes(':'))

// TODO: For the default node implementation use `isBuiltin` from `node:module`.
// Note that Deno doesn't support it.
// TODO: Use `isBuiltin` from `node:module`, but Deno doesn't support it
export function isNodeLikeBuiltin(id: string): boolean {
if (process.versions.deno && id.startsWith(NPM_BUILTIN_NAMESPACE)) return true
if (process.versions.bun && id.startsWith(BUN_BUILTIN_NAMESPACE)) return true
Expand Down

0 comments on commit 572b283

Please sign in to comment.