Skip to content

Commit fd8e157

Browse files
committed
Add comment explaining next.config change
1 parent a04cc3b commit fd8e157

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

next.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ const nextConfig = {
3636
// Don't bundle the shim unnecessarily.
3737
config.resolve.alias['use-sync-external-store/shim'] = 'react';
3838

39-
// TODO comment
39+
// ESLint depends on the CommonJS version of esquery,
40+
// but Webpack loads the ESM version by default. This
41+
// alias ensures the correct version is used.
42+
//
43+
// More info:
44+
// https://github.com/reactjs/react.dev/pull/8115
4045
config.resolve.alias['esquery'] = 'esquery/dist/esquery.min.js';
4146

4247
const {IgnorePlugin, NormalModuleReplacementPlugin} = require('webpack');

0 commit comments

Comments
 (0)