Skip to content

Commit ea09fde

Browse files
ArnaudBarrebluwy
andauthoredSep 23, 2022
feat(client): add data-vite-dev-id attribute to style elements (#10080)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
1 parent 01235e2 commit ea09fde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/vite/src/client/client.ts

+1
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ export function updateStyle(id: string, content: string): void {
364364
if (!style) {
365365
style = document.createElement('style')
366366
style.setAttribute('type', 'text/css')
367+
style.setAttribute('data-vite-dev-id', id)
367368
style.innerHTML = content
368369
document.head.appendChild(style)
369370
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.