Active
Project:
Vite
Version:
1.5.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2025 at 15:20 UTC
Updated:
31 Oct 2025 at 15:23 UTC
Jump to comment: Most recent, Most recent file
When I use vite_get_chunk_path within twig, it returns the 'file' property without the dist asset path. In other places where we use getChunk, afterwards, resolveDistAssetPath is called, but not when called from the TwigExtension.
I've added the option to include the dist asset path when calling getChunk.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3555445-1.patch | 937 bytes | matsrok |
Comments
Comment #2
matsrok commentedA patch that optionally includes the dist asset path in the returned string from Vite::getChunk.