DEV Community

Exploring Turbopack with Next.js 13

Rajae Robinson on October 01, 2023

Hey everyone, I recently wrote an article about Turbopack, which is being hailed as the successor to Webpack. It promises some serious speed impro...
Collapse
 
nathlowe profile image
NathLowe

I experimented with it, it was very fast. I encountered an issue with React i18n and turbo, as turbo could not load the translation.

I also added a new script called turbo instead of modifying the dev one. This way, I can easily switch between them.

{
    "scripts": {
        "dev": "next dev",
        "turbo": "next dev --turbo",
        "build": "next build",
        "start": "next start",
        "lint": "next lint"
    }
}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
rajaerobinson profile image
Rajae Robinson

Hey NathLowe, thanks for sharing your experience. And, nice tip on creating a separate turbo script to make things more convenient. I'll definitely consider using it