Skip to content

Commit 0bf0604

Browse files
authored
Merge pull request #46 from mpvue/develop
fix: #37 产生的JS语法问题
2 parents 965405f + b5df354 commit 0bf0604

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/mp-compiler/util.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function getBabelrc (src) {
121121
return ''
122122
}
123123

124-
const defaultPart = type => {
124+
function defaultPart (type) {
125125
return {
126126
type,
127127
content: '\n',
@@ -134,6 +134,7 @@ const defaultPart = type => {
134134
names: [],
135135
mappings: '',
136136
sourcesContent: []
137+
}
137138
}
138139
}
139140

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mpvue-loader",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "mpvue single-file component loader for Webpack",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)