Description
Decided to check how the chunking is working. In development everything seemed alright but in production it was broken.
Actual Behavior
In production - ssr was alright but hydration couldn't work, it couldn't find relevant component to hydrate with. After looking at the generated code I saw no links for chunks, only for main entry. I saw that chuck assets have .mjs extension unlike an entry script which used .js and looking at renderPreloadLink in server.js of live_vue I see that it ignores .mjs files, expects only .js ones.
Expected Behavior
Preload links should be generated for used chunks.
Environment
LiveVue: 1.0.0-rc.3
Phoenix: 1.8.1
Phoenix LiveView: 1.1.17
Elixir: 1.19.5
Node: v25.8.0
Npm: 11.11.0
Vue: 3.5.22 deduped
Description
Decided to check how the chunking is working. In development everything seemed alright but in production it was broken.
Actual Behavior
In production - ssr was alright but hydration couldn't work, it couldn't find relevant component to hydrate with. After looking at the generated code I saw no links for chunks, only for main entry. I saw that chuck assets have
.mjsextension unlike an entry script which used.jsand looking atrenderPreloadLinkinserver.jsoflive_vueI see that it ignores.mjsfiles, expects only.jsones.Expected Behavior
Preload links should be generated for used chunks.
Environment