Files
Webify/next.config.ts
Pascal Linxweiler 7f6f5c4769 updated packages
2026-01-30 15:47:45 +01:00

20 lines
631 B
TypeScript

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;