Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Fix the bug "failing to update when using browserify" #128

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Check type of __vueify_style__ before disposing
My app failed to update when using browserify-hmr.
I add this type-check then it works.
  • Loading branch information
fzhan committed Sep 21, 2016
commit b16002654290293a407a4cf8a5dfb3141671c342
2 changes: 1 addition & 1 deletion lib/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ compiler.compile = function (content, filePath, cb) {
' hotAPI.install(require("vue"), true)\n' +
' if (!hotAPI.compatible) return\n' +
// remove style tag on dispose
(style
(style && 'object' === typeof(__vueify_style__) && __vueify_style__ instanceof Node
? ' module.hot.dispose(function () {\n' +
' __vueify_insert__.cache[' + style + '] = false\n' +
' document.head.removeChild(__vueify_style__)\n' +
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy