Skip to content

Conversation

@clydin
Copy link
Member

@clydin clydin commented May 18, 2023

When using the esbuild-based browser application builder with the development server, configured application assets are served directly from disk. The URLs passed to Vite are now percent encoded to properly handle asset paths that may contain unsupported URL characters. This aligns with the static middleware within Vite: https://github.com/vitejs/vite/blob/3609e79dc1416073dc4775bb2fcf6a7398f169b3/packages/vite/src/node/server/middlewares/static.ts#L162

Closes #25238

…lopment server for esbuild

When using the esbuild-based browser application builder with the development server, configured
application assets are served directly from disk. The URLs passed to Vite are now percent encoded
to properly handle asset paths that may contain unsupported URL characters.
@clydin clydin added target: patch This PR is targeted for the next patch release action: review The PR is still awaiting reviews from at least one requested reviewer labels May 18, 2023
@clydin clydin requested a review from alan-agius4 May 18, 2023 13:41
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels May 19, 2023
@alan-agius4 alan-agius4 merged commit 4c82bb8 into angular:main May 19, 2023
@clydin clydin deleted the esbuild/asset-url-encoding-server branch May 19, 2023 10:23
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ng serve with esbuild does not deliver assets when project directory contains URL-encoded entity

2 participants