Files
transform/next.config.js
2023-12-28 02:28:06 +05:30

24 lines
423 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: [
{
loader: "@svgr/webpack",
options: {
throwIfNamespace: false,
},
},
],
});
return config;
},
};
module.exports = nextConfig;