File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ export async function transformMain(
150150 )
151151 output . push (
152152 `import.meta.hot.on('file-changed', ({ file }) => {` ,
153- ` window.__VUE_HMR_CHANGED_FILE = file` ,
153+ ` __VUE_HMR_RUNTIME__.CHANGED_FILE = file` ,
154154 `})` ,
155155 )
156156 // check if the template is the only thing that changed
@@ -159,7 +159,7 @@ export async function transformMain(
159159 // is triggered by changes in other files that the current component
160160 // relies on, a reload is required.
161161 output . push (
162- `export const _rerender_only = window.__VUE_HMR_CHANGED_FILE === ${ JSON . stringify ( filename ) } ` ,
162+ `export const _rerender_only = __VUE_HMR_RUNTIME__.CHANGED_FILE === ${ JSON . stringify ( filename ) } ` ,
163163 )
164164 }
165165 output . push (
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ describe('hmr', () => {
213213 await untilUpdated ( ( ) => page . textContent ( '.hmr-number' ) , '100' )
214214
215215 // reload
216- editFile ( 'lib.js' , ( code ) => code . replace ( 'return 100' , 'return 200' ) )
216+ editFile ( 'lib.js' , ( code ) => code . replace ( '100' , '200' ) )
217217 await untilUpdated ( ( ) => page . textContent ( '.hmr-number' ) , '200' )
218218 } )
219219
You can’t perform that action at this time.
0 commit comments