diff --git a/index.js b/index.js index a7191b6..9789abd 100644 --- a/index.js +++ b/index.js @@ -294,5 +294,6 @@ function restoreState (vm, state, isRoot) { } function format (id) { - return id.match(/[^\/]+\.vue$/)[0] + var match = id.match(/[^\/]+\.vue$/) + return match ? match[0] : id } diff --git a/package.json b/package.json index 1bfd491..da735a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-hot-reload-api", - "version": "1.3.2", + "version": "1.3.3", "description": "hot reload api for *.vue components", "main": "index.js", "scripts": { 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