Duplicate Imports from next/cache
and build size increase
#77823
Labels
Performance
Anything with regards to Next.js performance.
next/cache
and build size increase
#77823
https://github.com/m-elagamy/nextjs-cache-duplication
To Reproduce
git clone https://github.com/m-elagamy/nextjs-cache-duplication.git
npm install
npm run build
'next/cache'
(e.g.,revalidatePath
,revalidateTag
) in IDE autocomplete or build output.Current vs. Expected behavior
Actual Behavior
'next/cache'
(e.g.,revalidatePath
,revalidateTag
) are duplicated.Expected Behavior
'next/cache'
.Before building
After
Provide environment information
Which area(s) are affected? (Select all that apply)
Performance
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional Context
node_modules
and.next
, reinstalling, and deduplicating.next.config.js
or extra dependencies beyond the default template.The text was updated successfully, but these errors were encountered: