Skip to content

honor magic comments #5

@dalimian

Description

@dalimian

@faceyspacey

Thanks alot for great plugin, and not just this one but the group of plugins you created.

Used them, they worked, saved me so much time

feedback for this plugin specifically though.

looks like it ignores webpack's magic comments and instead provides it's own way to generate the chunk names. creative, but potential issues I see with that are

  1. webpack's magic comments is an official feature that many have come to use and depend on.
  2. Potential source of confusion when a plugin disables a documented feature of the core library
  3. I think there is a potential of conflicts in your algorithm,
    import('./components/componenta') in /site/page1/index.js, and
    import('./components/componenta') in /site/page2/index.js,
    will produce the same chunk path I believe

I would recommend to honor webpack's magic comments, or more so, require it. if you still like keep your alternative then make it an opt in feature, or only when magic comment is not specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions