Skip to content
Important
Security Advisory: CVE-2025-66478
Find out more
You are currently viewing the Pages Router documentation for version 13 of Next.js.

transpilePackages

Last updated June 28, 2023

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.

next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
  transpilePackages: ['@acme/ui', 'lodash-es'],
}
 
module.exports = nextConfig

Version History

VersionChanges
v13.0.0transpilePackages added.

Was this helpful?

supported.