var postcss = require("postcss")
var assign = require("object-assign")

module.exports = function() {
    this.filter("postcss", function (data, config) {
        // Combine our config with defaults using Object.assign
        let fullConfig = assign({}, { plugins: [], options: {} }, config)

        // Return our promise out so we can wrap this async promise-based API
        return new Promise((resolve, reject) => {
            // Pull in the plugins list
            postcss(fullConfig.plugins)
                // Process the CSS with PostCSS and our options object passed to PostCSS
                .process(data.toString(), fullConfig.options)
                .then((result) => {
                    // Resolve our CSS the way Fly expects it
                    return resolve({ css: result.css })
                })
                .catch((err) => {
                    return reject(err)
                })
        })
    })
}

@@ -224,17 +224,9 @@
     
-let fullC
+c
 onfi
@@ -241,17 +241,16 @@
 gn(%7B%7D, %7B
- 
 plugins:
@@ -265,17 +265,16 @@
 ions: %7B%7D
- 
 %7D, confi
@@ -382,16 +382,25 @@
 Promise(
+function 
 (resolve
@@ -408,19 +408,16 @@
  reject)
- =%3E
  %7B%0A     
@@ -471,21 +471,17 @@
 postcss(
-fullC
+c
 onfig.pl
@@ -622,13 +622,9 @@
 (), 
-fullC
+c
 onfi
@@ -660,16 +660,25 @@
 hen(
+function 
 (result)
  =%3E 
@@ -673,19 +673,16 @@
 (result)
- =%3E
  %7B%0A     
@@ -774,17 +774,16 @@
 esolve(%7B
- 
 css: res
@@ -789,17 +789,16 @@
 sult.css
- 
 %7D)%0A     
@@ -838,16 +838,22 @@
 tch(
+function 
 (err)
- =%3E
  %7B%0A 

rewrite to es5