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 5a2b078 commit 76a4e54Copy full SHA for 76a4e54
next.config.js
@@ -1,10 +1,17 @@
1
-const withPlugins = require("next-compose-plugins");
2
const withBundleAnalyzer = require("@next/bundle-analyzer");
3
4
-const config = {};
+const config = {
+ compiler: {
5
+ emotion:
6
+ true
7
+ },
8
+};
9
10
const bundleAnalyzer = withBundleAnalyzer({
11
enabled: process.env.ANALYZE === "true",
12
});
13
-module.exports = withPlugins([[bundleAnalyzer, config]]);
14
+module.exports = (_phase, { defaultConfig }) => {
15
+ const plugins = [bundleAnalyzer]
16
+ return plugins.reduce((acc, plugin) => plugin(acc), { ...config })
17
+}
0 commit comments