code: function compilerFactory(file, compilerOptions, webpackOptions) {
      if (!_.isObject(compilerOptions)) {
          compilerOptions = {};
      }
  
      var config = configFactory(path.resolve(file.path), webpackOptions),
          compiler = config && webpack(config);
  
      if (compiler) {
          var useMemoryFs = compilerOptions.useMemoryFs === true,
              hasProgress = _.isFunction(compilerOptions.progress);
  
          if (useMemoryFs) {
              compiler.outputFileSystem = new MemoryFs();
          }
  
          if (hasProgress) {
              var progress = compilerOptions.progress;
  
              compiler.apply(new ProgressPlugin(function(p, msg) {
                  progress(file, p, msg);
              }));
          }
      }
  
      return compiler;
  }
docs: Creates compiler
  @alis compilerFactory
  @private
  @param {File} file
  @param {Object} compilerOptions
  @param {Configuration=} webpackOptions
  @returns {Compiler}