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

@@ -16,7 +16,7 @@ export interface HMRRuntime {
// it easier to be used in toolings like vue-loader
// Note: for a component to be eligible for HMR it also needs the __hmrId option
// to be set so that its instances can be registered / removed.
if (__BUNDLER__ && __DEV__) {
if (__DEV__) {
const globalObject: any =
typeof global !== 'undefined'
? global