From 3f9e5d49dfeb25ee22423fb5d180fe63b1c23c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Wed, 22 Jun 2022 00:20:11 +0900 Subject: [PATCH] docs: add #8626 to migration guide (#8698) --- docs/guide/migration.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guide/migration.md b/docs/guide/migration.md index 2bc5e024e61b28..8f73f4b055494d 100644 --- a/docs/guide/migration.md +++ b/docs/guide/migration.md @@ -121,6 +121,8 @@ There are some changes which only affects plugin/tool creators. - [[#8178] feat!: migrate to ESM](https://github.com/vitejs/vite/pull/8178) - `formatPostcssSourceMap` is now async - `resolvePackageEntry`, `resolvePackageData` are no longer available from CJS build (dynamic import is needed to use in CJS) +- [[#8626] refactor: type client maps](https://github.com/vitejs/vite/pull/8626) + - Type of callback of `import.meta.hot.accept` is now stricter. It is now `(mod: (Record & { [Symbol.toStringTag]: 'Module' }) | undefined) => void` (was `(mod: any) => void`). Also there are other breaking changes which only affect few users.