Skip to content

Commit

Permalink
fix(astro): astro integration HMR not work (#2997)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Aug 19, 2023
1 parent 162a900 commit 1e9d1d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/index.ts
Expand Up @@ -34,7 +34,7 @@ function AstroVitePlugin(options: AstroVitePluginOptions): Plugin {
if (RESOLVED_ID_RE.test(id)) {
// https://github.com/withastro/astro/blob/087270c61fd5c91ddd37db5c8fd93a8a0ef41f94/packages/astro/src/core/util.ts#L91-L93
// Align data-astro-dev-id with data-vite-dev-id to fix https://github.com/unocss/unocss/issues/2513
return join(root, id)
return this.resolve(join(root, id), importer, { skipSelf: true })
}

if (id === UNO_INJECT_ID) {
Expand Down

0 comments on commit 1e9d1d1

Please sign in to comment.