Skip to content

Commit

Permalink
fix: include more modules to prefix-only module list (#18667)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Nov 14, 2024
1 parent b74d363 commit 5a2103f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/vite/src/module-runner/evaluatedModules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,13 @@ export class EvaluatedModules {
}

// unique id that is not available as "$bare_import" like "test"
const prefixedBuiltins = new Set(['node:test', 'node:sqlite'])
// https://nodejs.org/api/modules.html#built-in-modules-with-mandatory-node-prefix
const prefixedBuiltins = new Set([
'node:sea',
'node:sqlite',
'node:test',
'node:test/reporters',
])

// transform file url to id
// virtual:custom -> virtual:custom
Expand Down

0 comments on commit 5a2103f

Please sign in to comment.