Remove webpack, migrate to Turbopack#685
Draft
valentin0h wants to merge 1 commit intoupgrade-nextjs16from
Draft
Conversation
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
09e82e4 to
9da6816
Compare
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Eliminates the
--webpackflag from all dev/build scripts by migrating to Turbopack-native configuration.What changed
unplugin-icons— replaced 4 icon imports across 2 files withreact-iconsequivalents (LuGithub,LuLinkedin,LuTwitter,FcGoogle). This was the only reason we needed a webpack plugin.@iconify/json— ~70MB dev dependency no longer needed@svgr/webpacktoturbopack.rules(officially supported by Turbopack)resolve.fallback.tlstoturbopack.resolveAliasfor client-sidetlsmodule stubbing@op/collabalias toturbopack.resolveAlias(bothapps/appandapps/api)--webpackflags from alldev,dev:e2e,build, andbuild:prodscriptsunplugin-iconstype references from 3 tsconfig files and depCheck allowlistNet effect
next devandnext buildnow use Turbopack by default (Next.js 16 default)node_modules(@iconify/json)