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([
139
139
// /root/id.js -> /id.js
140
140
// C:/root/id.js -> /id.js
141
141
// C:\root\id.js -> /id.js
142
- function normalizeModuleId ( file : string ) : string {
142
+ export function normalizeModuleId ( file : string ) : string {
143
143
if ( prefixedBuiltins . has ( file ) ) return file
144
144
145
145
// 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 1
1
// this file should re-export only things that don't rely on Node.js or other runner features
2
2
3
- export { EvaluatedModules , type EvaluatedModuleNode } from './evaluatedModules'
3
+ export {
4
+ EvaluatedModules ,
5
+ normalizeModuleId ,
6
+ type EvaluatedModuleNode ,
7
+ } from './evaluatedModules'
4
8
export { ModuleRunner } from './runner'
5
9
export { ESModulesEvaluator } from './esmEvaluator'
6
10
You can’t perform that action at this time.
0 commit comments