File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1+ // Empty module to satisfy Turbopack resolveAlias fallback for Node.js modules
2+ // See turbopack config in next.config.ts
3+ export default { }
Original file line number Diff line number Diff line change @@ -47,9 +47,21 @@ const config: NextConfig = {
4747 }
4848 } )
4949 } ,
50+
5051 // Turbopack is the default bundler in Next.js 16
5152 // Keep webpack config for now to support both bundlers
52- turbopack : { } ,
53+
54+ // Turbopack configuration for Next.js 16 (replaces webpack fallbacks)
55+ turbopack : {
56+ resolveAlias : {
57+ fs : {
58+ browser : './empty.ts' , // Point to empty module when fs is requested for browser
59+ } ,
60+ async_hooks : {
61+ browser : './empty.ts' , // Point to empty module when async_hooks is requested for browser
62+ } ,
63+ } ,
64+ } ,
5365
5466 webpack : ( webpackConfig ) => {
5567 webpackConfig . experiments = webpackConfig . experiments || { }
You can’t perform that action at this time.
0 commit comments