transpilePackages
Source URL: https://nextjs.org/docs/app/api-reference/config/next-config-js/transpilePackages
transpilePackages
Section titled “transpilePackages”Next.js can automatically transpile and bundle dependencies from local packages (like monorepos) or from external dependencies (node_modules). This replaces the next-transpile-modules package.
/** @type {import('next').NextConfig} */const nextConfig = { transpilePackages: ['package-name'],}
module.exports = nextConfigVersion History
Section titled “Version History”| Version | Changes |
|---|---|
v13.0.0 | transpilePackages added. |