vue-hot-reload-api
Advanced tools
Comparing version
@@ -5,2 +5,3 @@ var Vue // late bind | ||
var isBrowserify = false | ||
var initHookName = 'beforeCreate' | ||
@@ -14,2 +15,7 @@ exports.install = function (vue, browserify) { | ||
// compat with < 2.0.0-alpha.7 | ||
if (Vue.config._lifecycleHooks.indexOf('init') > -1) { | ||
initHookName = 'init' | ||
} | ||
exports.compatible = Number(Vue.version.split('.')[0]) >= 2 | ||
@@ -54,3 +60,3 @@ if (!exports.compatible) { | ||
function makeOptionsHot (id, options) { | ||
injectHook(options, 'init', function () { | ||
injectHook(options, initHookName, function () { | ||
map[id].instances.push(this) | ||
@@ -92,2 +98,3 @@ }) | ||
exports.rerender = tryWrap(function (id, fns) { | ||
debugger | ||
var record = map[id] | ||
@@ -94,0 +101,0 @@ record.Ctor.options.render = fns.render |
{ | ||
"name": "vue-hot-reload-api", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "hot reload api for *.vue components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
6846
2.58%118
5.36%1
Infinity%