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

Fix: invalid warning about babel #183

Merged
merged 1 commit into from
Mar 9, 2017
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
Fix: invalid warning about babel
  • Loading branch information
mysticatea committed Mar 8, 2017
commit 0f7cd46afea4a027b7eff82f7ff8fcb21bc52c71
2 changes: 1 addition & 1 deletion lib/compilers/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function getBabelRc () {
}

module.exports = function (raw, cb, compiler, filePath) {
if (babelOptions === defaultBabelOptions) {
if ((compiler.options.babel || babelOptions) === defaultBabelOptions) {
try {
ensureRequire('babel', ['babel-preset-es2015', 'babel-runtime', 'babel-plugin-transform-runtime'])
} catch (e) {
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