var path = require('path');

var root   = __dirname.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
var escape = function (str) {
    return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
};

var regexp = ['lib', 'test'].map(function (i) {
    return escape(path.join(__dirname, i));
}).join('|');

require('6to5/register')({ only: new RegExp(regexp) });
module.exports = require('./lib/postcss');

var path = require('path');

var root   = __dirname.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
var escape = function (str) {
    return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
};

var regexp = ['lib', 'test'].map(function (i) {
    return '^' + escape(path.join(__dirname, i) + path.sep);
}).join('|');

require('6to5/register')({
    only:        new RegExp('(' + regexp + ')'),
    ignore:      false,
    ignoreRegex: false
});
module.exports = require('./lib/postcss');

Fix ES6 hook to work in node_modules