File tree 2 files changed +3
-1
lines changed 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
var fs = require ( 'fs' )
2
2
var path = require ( 'path' )
3
+ var json = require ( 'json5' )
3
4
var assign = require ( 'object-assign' )
4
5
var ensureRequire = require ( '../ensure-require' )
5
6
@@ -16,7 +17,7 @@ var babelOptions = fs.existsSync(babelRcPath)
16
17
function getBabelRc ( ) {
17
18
var rc
18
19
try {
19
- rc = JSON . parse ( fs . readFileSync ( babelRcPath , 'utf-8' ) )
20
+ rc = json . parse ( fs . readFileSync ( babelRcPath , 'utf-8' ) )
20
21
} catch ( e ) {
21
22
throw new Error ( '[vueify] Your .babelrc seems to be incorrectly formatted.' )
22
23
}
Original file line number Diff line number Diff line change 31
31
"postcss-selector-parser" : " ^2.0.0" ,
32
32
"source-map" : " ^0.5.6" ,
33
33
"through" : " ^2.3.6" ,
34
+ "json5" : " ^0.5.1" ,
34
35
"vue-hot-reload-api" : " ^2.0.1" ,
35
36
"vue-template-compiler" : " ^2.0.0-alpha.8" ,
36
37
"vue-template-es2015-compiler" : " ^1.2.2"
You can’t perform that action at this time.
0 commit comments