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

Don't make .babelrc a requirement. #103

Merged
merged 2 commits into from
Jun 30, 2016
Merged
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
24 changes: 12 additions & 12 deletions lib/compilers/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ function getBabelRc () {
return rc
}

if (babelOptions === defaultBabelOptions) {
try {
ensureRequire('babel', ['babel-preset-es2015', 'babel-runtime', 'babel-plugin-transform-runtime'])
} catch (e) {
console.error(e.message)
console.error(
'\n^^^ You are seeing this because you are using Vueify\'s default babel ' +
'configuration. You can override this with .babelrc or the babel option ' +
'in vue.config.js.'
)
module.exports = function (raw, cb, compiler, filePath) {
if (babelOptions === defaultBabelOptions) {
try {
ensureRequire('babel', ['babel-preset-es2015', 'babel-runtime', 'babel-plugin-transform-runtime'])
} catch (e) {
console.error(e.message)
console.error(
'\n^^^ You are seeing this because you are using Vueify\'s default babel ' +
'configuration. You can override this with .babelrc or the babel option ' +
'in vue.config.js.'
)
}
}
}

module.exports = function (raw, cb, compiler, filePath) {
try {
var babel = require('babel-core')
var options = assign({
Expand Down