mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-26 02:24:44 +03:00
12 lines
277 B
JavaScript
12 lines
277 B
JavaScript
if (process.env.NODE_ENV !== "www") {
|
|
console.log("[ slate ] loading dotenv");
|
|
require("dotenv").config();
|
|
}
|
|
|
|
require("@babel/register")({
|
|
presets: ["@babel/preset-env"],
|
|
ignore: ["node_modules", ".next"],
|
|
});
|
|
|
|
module.exports = require("./" + process.argv[2] + ".js");
|