vue-hot-reload-api
Advanced tools
Comparing version
var Vue // late bind | ||
var version | ||
var map = window.__VUE_HOT_MAP__ = Object.create(null) | ||
@@ -12,2 +13,3 @@ var installed = false | ||
Vue = vue | ||
version = Vue.version.split('.').map(Number) | ||
isBrowserify = browserify | ||
@@ -20,3 +22,3 @@ | ||
exports.compatible = Number(Vue.version.split('.')[0]) >= 2 | ||
exports.compatible = version[0] >= 2 | ||
if (!exports.compatible) { | ||
@@ -117,3 +119,6 @@ console.warn( | ||
var record = map[id] | ||
record.Ctor.extendOptions = options | ||
if (version[1] < 2) { | ||
// preserve pre 2.2 behavior for global mixin handling | ||
record.Ctor.extendOptions = options | ||
} | ||
var newCtor = record.Ctor.super.extend(options) | ||
@@ -120,0 +125,0 @@ record.Ctor.options = newCtor.options |
{ | ||
"name": "vue-hot-reload-api", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"description": "hot reload api for *.vue components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
8981
1.42%123
4.24%