From 3d7d1a83a52da6f8a98e85ef95adbfcbbcdec87d Mon Sep 17 00:00:00 2001 From: Adam Niederer Date: Thu, 2 Feb 2017 14:25:00 -0500 Subject: [PATCH] Prevent crash when options._flags is undefined. Some tools might pass an empty options object to Vueify. This means options._flags is undefined, and options._flags.debug is a crash. Short-circuiting falsey _flags values will prevent this crash in most cases. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d789a83..f9fd05c 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ module.exports = function vueify (file, options) { compiler.loadConfig() compiler.applyConfig(options) compiler.applyConfig({ - sourceMap: options._flags.debug + sourceMap: !!options._flags && options._flags.debug }) var data = '' 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