Skip to content

Commit

Permalink
add note about Next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Sep 17, 2024
1 parent 607b22b commit 2a3ac8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ If you're using ESLint you can catch problematic imports with the [`no-restricte

### Option two: use a Babel plugin

This option provides the best user experience and developer experience:
This option provides the best user experience and developer experience, except if you're using **Next.js 13.5 or greater**, where this optimization is automatically applied via the `optimizePackageImports` option in Next.js. In that case, using a Babel plugin is unnecessary.

- UX: The Babel plugin enables top-level tree-shaking even if your bundler doesn't support it.
- DX: The Babel plugin makes startup time in dev mode as fast as Option 1.
Expand Down

0 comments on commit 2a3ac8d

Please sign in to comment.