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

Commit 6992fc7

Browse files
mysticateayyx990803
authored andcommitted
Fix: invalid warning about babel (#183)
1 parent 80e168a commit 6992fc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compilers/babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function getBabelRc () {
2525
}
2626

2727
module.exports = function (raw, cb, compiler, filePath) {
28-
if (babelOptions === defaultBabelOptions) {
28+
if ((compiler.options.babel || babelOptions) === defaultBabelOptions) {
2929
try {
3030
ensureRequire('babel', ['babel-preset-es2015', 'babel-runtime', 'babel-plugin-transform-runtime'])
3131
} catch (e) {

0 commit comments

Comments
 (0)