Skip to content

Commit

Permalink
[#131] docs: transpilePackages 추가 (#132)
Browse files Browse the repository at this point in the history
[#131] docs: pages directory > transpilePackages 추가
  • Loading branch information
sangseophwang committed Sep 8, 2024
1 parent 854a864 commit 4074c16
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: transpilePackages
description: Automatically transpile and bundle dependencies from local packages (like monorepos) or from external dependencies (`node_modules`).
---

{/* 이 문서의 내용은 App Router와 Pages Router에서 공유됩니다. Pages Router에만 해당하는 내용을 추가하려면 `<PagesOnly>내용</PagesOnly>` 컴포넌트를 사용할 수 있습니다. 공유된 내용은 컴포넌트로 감싸지 않아야 합니다. */}

# transpilePackages

Next.js는 로컬 패키지(모노레포와 같은) 또는 외부 종속성(`node_modules`)에서 종속성을 자동으로 트랜스파일하고 번들링할 수 있습니다. 이는 `next-transpile-modules` 패키지를 대체합니다.

```js filename="next.config.js"
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ['package-name'],
}

module.exports = nextConfig
```

## Version History

| Version | Changes |
| --------- | --------------------------- |
| `v13.0.0` | `transpilePackages` 추가됨. |

0 comments on commit 4074c16

Please sign in to comment.