chore: install @svgr/webpack

This commit is contained in:
2026-05-28 11:03:18 -07:00
parent 3fa5fa3c95
commit b95093ee81
3 changed files with 2334 additions and 1 deletions
+19 -1
View File
@@ -1,7 +1,25 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
// Turbopack (default in `next dev` and `next build` on Next 16)
turbopack: {
rules: {
"*.svg": {
loaders: ["@svgr/webpack"],
as: "*.js",
},
},
},
// Webpack fallback — used if anyone opts out of Turbopack via `next build --no-turbopack`
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ["@svgr/webpack"],
});
return config;
},
};
export default nextConfig;
+2314
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -15,6 +15,7 @@
"react-dom": "19.2.4"
},
"devDependencies": {
"@svgr/webpack": "^8.1.0",
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",