Next.js Discord

Discord Forum

Is the experimental Bundle Analyzer including eslint for the client side?

Answered
Multiply posted this in #help-forum
Open in Discord
I just read through the 16.1 release notes, and checked out the experimental bundle analyzer's demo link: https://turbopack-bundle-analyzer-demo.vercel.sh/

If you go to the markdownPath, and show the Client data, it seems like it's including eslint in the bundle size.

I know it's experimental, but is there a way to check if it actually ends up in the final client side js bundle?
Answered by Multiply
I've decided to just post in the linked GH discussion instead: https://github.com/vercel/next.js/discussions/86731#discussioncomment-15299799

Didn't find it the first time I looked for it.
View full answer

2 Replies

I've decided to just post in the linked GH discussion instead: https://github.com/vercel/next.js/discussions/86731#discussioncomment-15299799

Didn't find it the first time I looked for it.
Answer
Western paper wasp
hi. in fact, it is not included in the final client package.
The experimental analyzer shows the dev/tooling modules from the Turbopack graph. To verify this, check the prod output (next build) or view the client snippets that have been issued, and ESLint will not be there.

Experimental Bundle Analyzer (Turbopack)
https://nextjs.org/docs/app/api-reference/next-config-js/experimental#analyze

Turbopack / Module graph
https://turbo.build/pack/docs/features/analyze

ESLint в Next.js
https://nextjs.org/docs/app/building-your-application/configuring/eslint