From f52b0a00af4d2394c27d8a21aee68aa6bf618a4a Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Sat, 28 May 2022 06:18:34 +0900 Subject: [PATCH] fix: `import.meta.accept()` -> `import.meta.hot.accept()` --- packages/vite/src/node/server/hmr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/server/hmr.ts b/packages/vite/src/node/server/hmr.ts index 23ed627a79f3e6..0206d5857c7fbe 100644 --- a/packages/vite/src/node/server/hmr.ts +++ b/packages/vite/src/node/server/hmr.ts @@ -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