Files
transform/next.config.js
T
2022-11-16 13:16:50 +05:30

27 lines
464 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
experimental: {
appDir: 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;