Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pranavjindal999 opened this issue Jun 6, 2018 · 2 comments
Closed

Comments

@pranavjindal999
Copy link

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.

@pranavjindal999
Copy link
Author

Thanks for the quick fix 👍

@atyshka
Copy link

atyshka commented Jan 4, 2021

Having this same issue in Vue CLI 4.3.1, suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants