transpilePackages
Next.js는 모노레포 같은 로컬 패키지나 외부 의존성(node_modules
)에서 자동으로 의존성을 트랜스파일하고 번들링할 수 있습니다. 이는 next-transpile-modules
패키지를 대체합니다.
next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ["package-name"],
};
module.exports = nextConfig;
버전 기록
버전 | 변경 사항 |
---|---|
v13.0.0 | transpilePackages 추가됨. |