File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
packages/vite/src/module-runner Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ const prefixedBuiltins = new Set([
139139// /root/id.js -> /id.js
140140// C:/root/id.js -> /id.js
141141// C:\root\id.js -> /id.js
142- function normalizeModuleId ( file : string ) : string {
142+ export function normalizeModuleId ( file : string ) : string {
143143 if ( prefixedBuiltins . has ( file ) ) return file
144144
145145 // unix style, but Windows path still starts with the drive letter to check the root
Original file line number Diff line number Diff line change 11// this file should re-export only things that don't rely on Node.js or other runner features
22
3- export { EvaluatedModules , type EvaluatedModuleNode } from './evaluatedModules'
3+ export {
4+ EvaluatedModules ,
5+ normalizeModuleId ,
6+ type EvaluatedModuleNode ,
7+ } from './evaluatedModules'
48export { ModuleRunner } from './runner'
59export { ESModulesEvaluator } from './esmEvaluator'
610
You can’t perform that action at this time.
0 commit comments