From fd36b7237b7a389eae76f41c9d1f410c0b728dde Mon Sep 17 00:00:00 2001 From: ZhenHappy Date: Mon, 30 Oct 2017 13:12:37 +0800 Subject: [PATCH] fix Es6 code issue. This file is not transpiled, so we should stick to ES5 --- template/build/dev-client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/build/dev-client.js b/template/build/dev-client.js index 09173ed..ea35821 100644 --- a/template/build/dev-client.js +++ b/template/build/dev-client.js @@ -2,7 +2,7 @@ /* eslint-disable */ require('eventsource-polyfill') -const hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true') +var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true') hotClient.subscribe(function (event) { if (event.action === 'reload') {