Skip to content

Commit

Permalink
fix: import.meta.accept() -> import.meta.hot.accept() (#8361)
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki authored May 27, 2022
1 parent eddb6fb commit c5185cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/hmr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ export function lexAcceptedHmrDeps(

function error(pos: number) {
const err = new Error(
`import.meta.accept() can only accept string literals or an ` +
`import.meta.hot.accept() can only accept string literals or an ` +
`Array of string literals.`
) as RollupError
err.pos = pos
Expand Down

0 comments on commit c5185cf

Please sign in to comment.