Skip to content

esbuild/vite dev-server not picking up file changes from libraries outside the main application folder #25322

Closed as not planned
@preda7or

Description

@preda7or

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

Yes

Description

I am using Nrwl/Nx workspace containing app and lib projects in /apps/app and /libs/lib1,2,3 folders respectively.
Tried the experimental @angular-devkit/build-angular:browser-esbuild executor to build and serve the application.
Builds works fine, serve's initial build works fine.
If I change files in the main application dev-server updates fine.

But if I change files in the library folders, the change is not picked up by the dev-server, so I have to restart the whole to get the changes.

Please provide a link to a minimal reproduction of the bug

https://github.com/preda7or/nx-workspace

Please provide the exception or error you saw

No error/exceptions.

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 16.0.4
Node: 16.20.0
Package manager: NPM 8.19.4

Angular: 16.0.4
using `@angular-devkit/build-angular:browser-esbuild` !!!

Anything else?

I know the vite/esbuild dev-server is experimental, just wanted to let you know about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions