Problem/Motivation

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.

Proposed resolution

I've added the option to include the dist asset path when calling getChunk.

CommentFileSizeAuthor
#2 3555445-1.patch937 bytesmatsrok

Comments

matsrok created an issue. See original summary.

matsrok’s picture

StatusFileSize
new937 bytes

A patch that optionally includes the dist asset path in the returned string from Vite::getChunk.