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
Changes from 1 commit
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
Next Next commit
Parse babelrc with json5
  • Loading branch information
gzzhanghao authored Dec 5, 2016
commit e660c2e9e291576bb1d4ec98c895b8f921b2722a
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy