At the moment I have the following Webpack configuration that allows me to replace repetitive ../ chains with @ - if you're aware of Theo from T3 then you'll recognise this pattern.
const path = require("path");
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
webpack(config, { webpack }) {
config.resolve.alias["@"] = path.resolve("./src");
return config;
},
};
module.exports = nextConfig;
At the moment I am trying to replicate this alias in Bun and when reading the documentation it isn't clear to me how to set this up in bunfig.toml, which at the moment looks like this:
framework = "next"
How can I achieve this alias?