Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HMR doesn't work when a base property is set in the Vite config #18

Closed
nekusu opened this issue Dec 11, 2022 · 1 comment
Closed

HMR doesn't work when a base property is set in the Vite config #18

nekusu opened this issue Dec 11, 2022 · 1 comment

Comments

@nekusu
Copy link

nekusu commented Dec 11, 2022

Issue

When setting a base property in vite.config.ts other than the default, HMR does not reflect the changes. Vite logs [vite] hmr update (modified file), but there is no update at all.

Config example

import react from '@vitejs/plugin-react-swc';
import { defineConfig } from 'vite';

export default defineConfig({
  base: '/test/',
  plugins: [react()],
});

Notes

This same scenario works as expected when using the babel-based plugin @vitejs/plugin-react.

@ArnaudBarre
Copy link
Member

Thanks for the report!

This will be available in the next path probably next this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants