I have an application that I have recently swtiched to vite which is incorrectly importing assts in dev. Specifically, regardless of which suffix is added, the import resolves to the asset url. This is not a problem when building for production. It's also not a problem when the page is being server-side rendered. This only occurs when the code reaches the browser.
Would really appreciate any suggestions to isolate the issue further. Thanks.