Skip to content

Dynamic imports not splitting into different chunk for lazy loading #1488

Closed
@pranavjindal999

Description

@pranavjindal999

Version

3.0.0-beta.15

Reproduction link

https://github.com/pranavjindal999/beta15-repro

Steps to reproduce

  • Create a new Vue project using Vue Cli 3 (any version)
  • Make a dynamic import anywhere in the code. (using import('module-name') )
  • Build the project with Vue CLI-3.0.0.beta 12 or above

What is expected?

Dynamically imported module should split into a separate file and is not included in vendor bundle.

What is actually happening?

Dynamically imported module is included in vendor bundle and NO separate file is made.


This worked fine with Vue CLI 3.0.0-beta.11 and down.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions