require("babel-polyfill");

/**
 * Configure babel using the require hook
 * More details here: https://babeljs.io/docs/setup/#babel_register
 */
require("babel-core/register")({
    only: /src/,
    presets: ["es2015", "react", "stage-0"]
});

require('dotenv').load();
/**
 * Define isomorphic constants.
 */
global.__CLIENT__ = false;
global.__SERVER__ = true;

if (process.env.NODE_ENV !== "production") {
    if (!require("piping")({hook: true, includeModules: false})) {
        return;
    }
}

try {
    require("./src/server/server");
}
catch (error) {
    console.error(error.stack);
}

@@ -261,16 +261,103 @@
 ').load(
+%7Bpath: process.env.NODE_ENV === %22production%22 ? %60.env.$%7Bprocess.env.NODE_ENV%7D%60 : '.env'%7D
 );%0A/**%0A 

Load production vars from .env.production