UNPKG

arredemo

Version:

Instantly build a static site for your package

26 lines (21 loc) 532 B
import path from "node:path" import { fileURLToPath } from "node:url" const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) const aliases = { app: path.join(__dirname, ".") } const _BABEL = { presets: [["@babel/preset-env", { targets: { esmodules: true } }], "@babel/preset-react"], plugins: [ [ "babel-plugin-module-resolver", { root: [path.resolve(".")], extension: [".mjs", ".jsx"], alias: aliases } ] ] } export default _BABEL