Skip to content

BUG: lack of preload links for mjs chunks #132

@vonagam

Description

@vonagam

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions