Skip to content

Bug: Lazy loading components causes unnecessary webpack chunks #360

@pkkummermo

Description

@pkkummermo

I'm submitting a bug report

  • Library Version:
    2.0.0-rc.x

Please tell us about your environment:

  • Operating System:
    Ubuntu Linux

  • Node Version:
    9.11.1

  • NPM Version:
    6.1.0
  • JSPM OR Webpack AND Version
    webpack 4.17.1
  • Browser:
    all

  • Language:
    TypeScript 3.X

Current behavior:
Upon production build we receive lazyloaded chunks for all dialog components. This is most likely due to the change made in https://github.com/aurelia/dialog/pull/354/files#diff-0ba886733b618be0416988ba431fb6f1L9

Expected/desired behavior:

  • What is the expected behavior?
    The 1.x version automatically bundled within the app.js-chunk due to the loading mechanisms used.

  • What is the motivation / use case for changing the behavior?
    Adding five minimal chunks adds unnecessary overhead and roundtrips to the server and should by default be unlazy.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions