We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a04cc3b commit fd8e157Copy full SHA for fd8e157
next.config.js
@@ -36,7 +36,12 @@ const nextConfig = {
36
// Don't bundle the shim unnecessarily.
37
config.resolve.alias['use-sync-external-store/shim'] = 'react';
38
39
- // TODO comment
+ // 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
45
config.resolve.alias['esquery'] = 'esquery/dist/esquery.min.js';
46
47
const {IgnorePlugin, NormalModuleReplacementPlugin} = require('webpack');
0 commit comments