/**
 * Copyright (C) 2016 yanni4night.com
 * transformer.js
 *
 * changelog
 * 2016-06-17[14:09:17]:revised
 *
 * @author yanni4night@gmail.com
 * @version 1.0.0
 * @since 1.0.0
 */
'use strict';
const extend = require('lodash/extend');
const isPlainObject = require('lodash/isPlainObject');
const isNil = require('lodash/isNil');
const EventEmitter = require('events');

class Transformer extends EventEmitter{
    constructor(opt) {
        super();
        if (!isNil(opt) && !isPlainObject(opt)) {
            throw new Error(`A PLAIN OBJECT is required to construct a transformer`);
        }
        this.options = extend({}, opt);
    }
    transform(file, resourceMap) {
        const {
            content
        } = file;

        if (isNil(content) || true === this.options.isSkip) {
            return Promise.resolve(file);
        }

        return this._transform(file, resourceMap);
    }
    _transform(file /*, resourceMap*/ ) {
        return Promise.resolve(file);
    }
}

module.exports = Transformer;
@@ -328,87 +328,27 @@
 ');%0A
-const EventEmitter = require('events');%0A%0Aclass Transformer extends EventEmitter
+%0Aclass Transformer 
 %7B%0A  
@@ -372,25 +372,8 @@
 ) %7B%0A
-        super();%0A
     

remove extending EventEmitter