Angular's vite plugin doesn't consume code transformation of previous vite plugin in the chain #1148
Open
1 of 2 tasks
Labels
bug
Something isn't working
Please provide the environment you discovered this bug in.
https://github.com/TechAkayy/my-analog-app-transform-hook-issue/blob/main/vite.config.ts#L9-L21
Which area/package is the issue in?
vite-plugin-angular
Description
@analogjs/vite-plugin-angular
Analog's vite plugin is not using the transformed code from the previous vite plugin. The
transform
hook must perform transformation on top of what was done by the previous plugin's (in the plugin chain)transform
hook.Please refer to the above github reproduction (stackblitz doesn't seem to work with .analog files), in which
transform
hook to change the picture to that of a Puppy.I could be wrong here, but I notice that analog's vite plugin reads the file from the file system for it's code here, instead of using the code that came with the transform hook.
Here is an example of how Vue's & React's vite plugin's transform hook.
Please provide the exception or error you saw
Other information
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: