Skip to content

Server code goes to browser bundle on v19 #28670

@zip-fa

Description

@zip-fa

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Hi. I've noticed some strange code coming to prod build on v19 (+outputMode server + ssr enabled + prerender disabled) during lighthouse test:

  1. Some kind of server-only error:
    Image

  2. Postcss?
    Image

  3. Unvenv with a bunch of polyfills for node's fs?

Image

Correct me if i am wrong, but should this all (50+kb unminified) code come to browser build? Is this hydration-related packages?

Minimal Reproduction

ng build

Exception or Error

No response

Your Environment

latest v19

Anything else relevant?

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions