Skip to content

Commit

Permalink
chore: Add extra config for wagmi
Browse files Browse the repository at this point in the history
  • Loading branch information
0xwonj committed Apr 6, 2024
1 parent 60bf363 commit 77c57c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const nextConfig = {
formats: ['image/avif', 'image/webp'],
},

webpack(config) {
webpack: config => {
config.optimization.minimize = true;
config.optimization.minimizer.forEach(plugin => {
if (plugin.constructor.name === 'TerserPlugin') {
Expand Down Expand Up @@ -49,6 +49,8 @@ const nextConfig = {

config.optimization.concatenateModules = true;

config.externals.push('pino-pretty', 'lokijs', 'encoding');

return config;
},

Expand Down

0 comments on commit 77c57c8

Please sign in to comment.