File tree 2 files changed +1
-7
lines changed
2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -722,8 +722,6 @@ export function resolveHtmlTransforms(
722
722
return [ preHooks , postHooks ]
723
723
}
724
724
725
- export const maybeVirtualHtmlSet = new Set < string > ( )
726
-
727
725
export async function applyHtmlTransforms (
728
726
html : string ,
729
727
hooks : IndexHtmlTransformHook [ ] ,
@@ -734,8 +732,6 @@ export async function applyHtmlTransforms(
734
732
const bodyTags : HtmlTagDescriptor [ ] = [ ]
735
733
const bodyPrependTags : HtmlTagDescriptor [ ] = [ ]
736
734
737
- maybeVirtualHtmlSet . add ( ctx . filename )
738
-
739
735
for ( const hook of hooks ) {
740
736
const res = await hook ( html , ctx )
741
737
if ( ! res ) {
Original file line number Diff line number Diff line change 1
1
import path from 'path'
2
2
import { promises as fs } from 'fs'
3
3
import type { Logger } from '../logger'
4
- import { createDebugger , normalizePath } from '../utils'
4
+ import { createDebugger } from '../utils'
5
5
import type { SourceMap } from 'rollup'
6
- import { maybeVirtualHtmlSet } from '../plugins/html'
7
6
8
7
const isDebug = ! ! process . env . DEBUG
9
8
const debug = createDebugger ( 'vite:sourcemap' , {
@@ -43,7 +42,6 @@ export async function injectSourcesContent(
43
42
sourcePath = path . resolve ( sourceRoot , sourcePath )
44
43
}
45
44
return fs . readFile ( sourcePath , 'utf-8' ) . catch ( ( ) => {
46
- if ( maybeVirtualHtmlSet . has ( normalizePath ( sourcePath ) ) ) return null
47
45
missingSources . push ( sourcePath )
48
46
return null
49
47
} )
You can’t perform that action at this time.
0 commit comments