File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,23 @@ const nextConfig = {
2020 scrollRestoration : true ,
2121 } ,
2222 env : { } ,
23- turbopack : { } ,
23+ turbopack : {
24+ resolveAlias : {
25+ 'use-sync-external-store/shim' : 'react' ,
26+ raf : require . resolve ( './src/utils/rafShim.js' ) ,
27+
28+ // Unfortunately not working at the moment
29+ process : require . resolve ( './src/utils/processShim.js' ) ,
30+
31+ // ESLint depends on the CommonJS version of esquery,
32+ // but Webpack loads the ESM version by default. This
33+ // alias ensures the correct version is used.
34+ //
35+ // More info:
36+ // https://github.com/reactjs/react.dev/pull/8115
37+ esquery : 'esquery/dist/esquery.min.js' ,
38+ } ,
39+ } ,
2440 webpack : ( config , { dev, isServer, ...options } ) => {
2541 if ( process . env . ANALYZE ) {
2642 const { BundleAnalyzerPlugin} = require ( 'webpack-bundle-analyzer' ) ;
You can’t perform that action at this time.
0 commit comments