Skip to content

Commit

Permalink
fix(nextjs): rectify antd-related modularize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Jan 20, 2024
1 parent d561b66 commit 16dcb05
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ const nextConfig = {
},
reactStrictMode: true,
swcMinify: isProduction,
transpilePackages: [
// @see https://github.com/vercel/next.js/issues/58817
'@ant-design',
'rc-pagination',
'rc-picker',
'rc-util',
],
};

module.exports = NextPwa(nextConfig);

0 comments on commit 16dcb05

Please sign in to comment.