Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Parse babelrc with json5 #161

Merged
merged 2 commits into from
Dec 8, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/compilers/babel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var fs = require('fs')
var path = require('path')
var json = require('json5')
var assign = require('object-assign')
var ensureRequire = require('../ensure-require')

Expand All @@ -16,7 +17,7 @@ var babelOptions = fs.existsSync(babelRcPath)
function getBabelRc () {
var rc
try {
rc = JSON.parse(fs.readFileSync(babelRcPath, 'utf-8'))
rc = json.parse(fs.readFileSync(babelRcPath, 'utf-8'))
} catch (e) {
throw new Error('[vueify] Your .babelrc seems to be incorrectly formatted.')
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"postcss-selector-parser": "^2.0.0",
"source-map": "^0.5.6",
"through": "^2.3.6",
"json5": "^0.5.1",
"vue-hot-reload-api": "^2.0.1",
"vue-template-compiler": "^2.0.0-alpha.8",
"vue-template-es2015-compiler": "^1.2.2"
Expand Down