Skip to content

Remove webpack, migrate to Turbopack#685

Draft
valentin0h wants to merge 1 commit intoupgrade-nextjs16from
remove-webpack
Draft

Remove webpack, migrate to Turbopack#685
valentin0h wants to merge 1 commit intoupgrade-nextjs16from
remove-webpack

Conversation

@valentin0h
Copy link
Collaborator

Summary

Eliminates the --webpack flag from all dev/build scripts by migrating to Turbopack-native configuration.

What changed

  • Removed unplugin-icons — replaced 4 icon imports across 2 files with react-icons equivalents (LuGithub, LuLinkedin, LuTwitter, FcGoogle). This was the only reason we needed a webpack plugin.
  • Removed @iconify/json — ~70MB dev dependency no longer needed
  • Migrated @svgr/webpack to turbopack.rules (officially supported by Turbopack)
  • Migrated resolve.fallback.tls to turbopack.resolveAlias for client-side tls module stubbing
  • Migrated e2e @op/collab alias to turbopack.resolveAlias (both apps/app and apps/api)
  • Removed --webpack flags from all dev, dev:e2e, build, and build:prod scripts
  • Cleaned up unplugin-icons type references from 3 tsconfig files and depCheck allowlist

Net effect

  • next dev and next build now use Turbopack by default (Next.js 16 default)
  • ~70MB less in node_modules (@iconify/json)
  • Faster dev server startup (Turbopack vs webpack)
  • 14 files changed, +55 −1016 lines

@valentin0h
Copy link
Collaborator Author

Squashed into #684 on upgrade-nextjs16 branch

- Replace unplugin-icons with react-icons (LuGithub, LuLinkedin, LuTwitter, FcGoogle)
- Remove unplugin-icons, @iconify/json deps and type references
- Migrate @svgr/webpack from webpack callback to turbopack.rules
- Migrate resolve.fallback.tls to turbopack.resolveAlias
- Migrate e2e @op/collab alias to turbopack.resolveAlias
- Remove --webpack flags from all dev/build scripts
- Remove @iconify/json allowlist from depCheck script
@vercel
Copy link
Contributor

vercel bot commented Feb 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Ready Ready Preview Feb 26, 2026 4:28pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant