Advertisement
Intermediate Next.js, Turbopack & Build Performance

What should you do if a specific loader or plugin your project relies on is not yet fully supported by Turbopack?

Short answer

You can continue using the standard Webpack based build for production while still benefiting from Turbopack's speed during local development, or check the plugin's compatibility status and look for an alternative that is supported, since Turbopack is being built as a gradual…

Save Next.js mock interview
Advertisement
AModel answer
You can continue using the standard Webpack based build for production while still benefiting from Turbopack's speed during local development, or check the plugin's compatibility status and look for an alternative that is supported, since Turbopack is being built as a gradual, compatible replacement rather than requiring an all or nothing switch.
// package.json
{
  "scripts": {
    "dev": "next dev --turbo",
    "build": "next build"
  }
}
Real-world example
A team continues using their existing Webpack based production build while enjoying Turbopack's speed benefits purely for their local development workflow, avoiding disruption from a plugin that is not yet fully compatible.
Likely follow-ups
  • How do you check whether a specific plugin or loader is compatible with Turbopack?
  • Is it safe to use different bundlers for development and production?
Related topics