From b5df354fef885008767df599e37fbd5e3a9fc3cd Mon Sep 17 00:00:00 2001 From: anchengjian Date: Tue, 18 Sep 2018 17:05:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20#37=20=E4=BA=A7=E7=94=9F=E7=9A=84JS?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mp-compiler/util.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/mp-compiler/util.js b/lib/mp-compiler/util.js index 27726f5..80686d0 100644 --- a/lib/mp-compiler/util.js +++ b/lib/mp-compiler/util.js @@ -121,7 +121,7 @@ function getBabelrc (src) { return '' } -const defaultPart = type => { +function defaultPart (type) { return { type, content: '\n', @@ -134,6 +134,7 @@ const defaultPart = type => { names: [], mappings: '', sourcesContent: [] + } } } diff --git a/package.json b/package.json index bb1c8ad..7445acd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mpvue-loader", - "version": "1.1.3", + "version": "1.1.4", "description": "mpvue single-file component loader for Webpack", "main": "index.js", "repository": {