slate/scripts/index.js

11 lines
241 B
JavaScript
Raw Normal View History

if (process.env.NODE_ENV !== "production") {
require("dotenv").config();
2021-08-20 23:42:38 +03:00
}
2020-02-19 09:30:47 +03:00
2021-08-21 00:16:09 +03:00
require("@babel/register")({
presets: ["@babel/preset-env"],
ignore: ["node_modules", ".next"],
});
2020-06-19 06:57:57 +03:00
module.exports = require("./" + process.argv[2] + ".js");