diff --git a/lib/compilers/babel.js b/lib/compilers/babel.js index be317b4..ef3a17e 100644 --- a/lib/compilers/babel.js +++ b/lib/compilers/babel.js @@ -40,6 +40,18 @@ module.exports = function (raw, cb, compiler, filePath) { try { var babel = require('babel-core') + + // browserify cli options + var opts = compiler.options.babel + if (opts) { + delete opts._ + // "--opt [ a b ]" and "--opt a --opt b" are allowed: + if (opts.ignore && opts.ignore._) opts.ignore = opts.ignore._ + if (opts.only && opts.only._) opts.only = opts.only._ + if (opts.plugins && opts.plugins._) opts.plugins = opts.plugins._ + if (opts.presets && opts.presets._) opts.presets = opts.presets._ + } + var options = assign({ comments: false, filename: filePath, 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