Skip to content

Commit 76a4e54

Browse files
committed
fix: remove next-compose-plugins
1 parent 5a2b078 commit 76a4e54

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

next.config.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
const withPlugins = require("next-compose-plugins");
21
const withBundleAnalyzer = require("@next/bundle-analyzer");
32

4-
const config = {};
3+
const config = {
4+
compiler: {
5+
emotion:
6+
true
7+
},
8+
};
59

610
const bundleAnalyzer = withBundleAnalyzer({
711
enabled: process.env.ANALYZE === "true",
812
});
913

10-
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

Comments
 (0)