ember-vite-hmr
Ember Vite Hmr plugin.
this can hot reload
- helpers
- modifiers
- components + templates, fcct components and its deps
- routes/controllers/route-templates
this tries to keep the state of properties in components and controller
it cannot hot reload local properties that turn out to be helpers/modifiers/components.
ember install ember-vite-hmr
update your vite.config.mjs
with
import { hmr } from 'ember-vite-hmr';
plugins: [hmr()];
update you babel.config.cjs
const { hotAstProcessor } = require('ember-vite-hmr/lib/babel-plugin');
plugins: [['ember-vite-hmr/lib/babel-plugin'], ...other];
and for 'babel-plugin-ember-template-compilation'
transforms: [...templateCompatSupport(), hotAstProcessor.transform],
See the Contributing guide for details.
This project is licensed under the MIT License.