build: remove __BUNLDER__ flag so that HMR is available for all builds

This commit is contained in:
Evan You
2020-04-20 00:34:53 -04:00
parent fa40d1ef3a
commit 19223f5462
8 changed files with 6 additions and 14 deletions

View File

@@ -209,7 +209,7 @@ export function createAppAPI<HostElement>(
vnode.appContext = context
// HMR root reload
if (__BUNDLER__ && __DEV__) {
if (__DEV__) {
context.reload = () => {
render(cloneVNode(vnode), rootContainer)
}