Skip to content

Replace or remove webpack magic comments #1212

Open
@matthew-white

Description

@matthew-white

We're moving from Vue CLI (webpack) to Vite in #671. Right now, we use webpack magic comments to give async components and locale files sensible names. You can see webpackChunkName being used in src/util/load-async.js and src/util/i18n.js. I know webpack supports magic comments beyond webpackChunkName, but I think that's the only one we use (not 100% sure though).

Does Vite have an equivalent to webpackChunkName? I didn't see anything from a quick glance at the docs. Vite also seems to give files/assets more sensible names by default compared to webpack. I think probably we could just remove the magic comments entirely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    infrastructureChanges to core libraries or setup

    Type

    No type

    Projects

    Status

    🕒 backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions