Closed znck closed 6 years ago
Can you give an example of what webpack usage would look like with this API?
BTW, since most of the bundlers that support hot-reload in some way (webpack, parcel, browserify + hmr plugin) share somewhat similar API, we should probably have that as the default implementation, and use it when the hot
is omitted (or disabled if hot
is false
). The API largely exists to make it configurable for the long term.
The hot reload API offered by webpack, parcel et.el is similar, but there are minute differences which make it impossible to provide implementations for all bundlers out there. Hence, we should make hot API injectable.
What is required in hot reload?
<template>
or<script>
changes, reload/rerender the component.<style module>
changes, delete cached component constructor.<style>
.Proposed API:
Related Issue: #51