Next.js Discord

Discord Forum

Turbopack and "project sourcecode" warning

Unanswered
Snowshoe posted this in #help-forum
Open in Discord
SnowshoeOP
Hi, i noticed when building with Turbopack, this warning pops up:

 ⚠ Support for Turbopack builds is experimental. We don't recommend deploying mission-critical applications to production.

- Turbopack currently always builds production sourcemaps for the browser. This will include project sourcecode if deployed to production.
- It is expected that your bundle size might be different from `next build` with webpack. This will be improved as we work towards stability.
- This build is without disk caching; subsequent builds will become faster when disk caching becomes available.
- When comparing output to webpack builds, make sure to first clear the Next.js cache by deleting the `.next` directory.



Specifically
Turbopack currently always builds production sourcemaps for the browser. This will include project sourcecode if deployed to production


Does this mean it is client code or server code that would be available from the browser?

Thank you.

1 Reply

American black bear
Client code, it's browser sourcemaps