File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ const renderApplyHmr = ({
88
88
// this silly formatting keeps all original characters in their position,
89
89
// thus saving us from having to provide a sourcemap
90
90
`${ imports . join ( ';' ) } ;${ `
91
- if (${ compatVite ? '' : 'import. meta && ' } import. meta.hot) {
91
+ if (${ compatVite ? '' : ` ${ meta } && ` } ${ meta } .hot) {
92
92
$2 = ${ globalName } .applyHmr({
93
93
m: ${ meta } ,
94
94
id: ${ quote ( id ) } ,
Original file line number Diff line number Diff line change @@ -134,7 +134,8 @@ function applyHmr(args) {
134
134
} )
135
135
136
136
if ( canAccept ) {
137
- hot . accept ( async ( { bubbled } = { } ) => {
137
+ hot . accept ( async arg => {
138
+ const { bubbled } = arg || { }
138
139
const newCssId = r . current . cssId
139
140
const cssChanged = newCssId !== cssId
140
141
// ensure old style sheet has been removed by now
You can’t perform that action at this time.
0 commit comments