From b78b189aea51ad1a8e5d76462aed58cd7d3db673 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sun, 6 Aug 2017 02:03:46 +0430 Subject: [PATCH] spa errors source map support --- lib/app/client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/app/client.js b/lib/app/client.js index a77d5d35b3..3156ee198a 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -13,6 +13,9 @@ import { getLocation, compile } from './utils' +<% if (debug) { %>import 'source-map-support/browser-source-map-support'<% } %> + +<% if (debug) { %>window.sourceMapSupport && window.sourceMapSupport.install()<% } %> const noopData = () => { return {} } const noopFetch = () => {}