Skip to content

Commit b1565ce

Browse files
committed
add config to optimize barrel imports
1 parent 5b999d8 commit b1565ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

next.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ const nextConfig = {
2929
permanent: true,
3030
},
3131
];
32-
},
32+
},
33+
experimental: {
34+
optimizePackageImports: [] // put folders with barrel imports here
35+
}
3336
};
3437

3538
module.exports = nextConfig;

0 commit comments

Comments
 (0)