Capítulo 408 de 456
Experimental option that loads only the modules actually used from a package that exports hundreds/thousands of modules, while keeping named-import ergonomics, improving dev/build performance.
module.exports = {
experimental: {
optimizePackageImports: ['package-name'],
},
}
Otimizados por padrão: lucide-react, date-fns, lodash-es, ramda, antd, react-bootstrap, ahooks, @ant-design/icons, @headlessui/react, @headlessui-float/react, @heroicons/react/20/solid, @heroicons/react/24/solid, @heroicons/react/24/outline, @visx/visx, @tremor/react, rxjs, @mui/material, @mui/icons-material, recharts, react-use, @material-ui/core, @material-ui/icons, @tabler/icons-react, mui-core, react-icons/*, effect, @effect/*.
lucide-react já vem otimizado).next.config.js.