mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-10 13:14:04 +03:00
31 lines
639 B
JavaScript
31 lines
639 B
JavaScript
const path = require("path");
|
|
const dirPath = path.join(__dirname);
|
|
require("@babel/register")({
|
|
presets: [
|
|
[require.resolve("@babel/preset-env")],
|
|
[
|
|
require.resolve("next/babel"),
|
|
{
|
|
"preset-env": {},
|
|
"transform-runtime": {},
|
|
"styled-jsx": {},
|
|
"class-properties": {},
|
|
},
|
|
],
|
|
],
|
|
plugins: [
|
|
[require.resolve("@babel/plugin-transform-runtime")],
|
|
[
|
|
require.resolve("babel-plugin-module-resolver"),
|
|
{
|
|
alias: {
|
|
"~": dirPath,
|
|
},
|
|
},
|
|
],
|
|
],
|
|
ignore: ["node_modules", ".next"],
|
|
});
|
|
|
|
module.exports = require("./server.js");
|