import type { NextConfig } from "next"; const nextConfig: NextConfig = { experimental: { turbo: { rules: { // Option 1: Apply the Dyad loader to all React files '*.{tsx,jsx}': { loaders: ['@dyad-sh/nextjs-webpack-component-tagger'], as: '*.tsx', // Tells Turbopack to treat the output as a React component }, }, }, }, // We keep this empty webpack function or remove it entirely. // If you remove it, the "conflict" warning disappears naturally. // If you keep it, it acts as a fallback if you ever run "next dev --webpack". }; export default nextConfig;