Skip to content

Commit c5185cf

Browse files
authoredMay 27, 2022
fix: import.meta.accept() -> import.meta.hot.accept() (#8361)
1 parent eddb6fb commit c5185cf

File tree

1 file changed

+1
-1
lines changed
  • packages/vite/src/node/server

1 file changed

+1
-1
lines changed
 

‎packages/vite/src/node/server/hmr.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export function lexAcceptedHmrDeps(
425425

426426
function error(pos: number) {
427427
const err = new Error(
428-
`import.meta.accept() can only accept string literals or an ` +
428+
`import.meta.hot.accept() can only accept string literals or an ` +
429429
`Array of string literals.`
430430
) as RollupError
431431
err.pos = pos

0 commit comments

Comments
 (0)
Please sign in to comment.