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

bug: V6, production output files are several times larger when using Vite #24655

Closed
4 of 6 tasks
Edsuns opened this issue Jan 26, 2022 · 2 comments
Closed
4 of 6 tasks
Labels

Comments

@Edsuns
Copy link

Edsuns commented Jan 26, 2022

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

Production output files are large when using Vite:
20220126084006

Expected Behavior

The normal output size should be like the official template:
20220126084356

Steps to Reproduce

Ionic and Vite

  1. Clone https://github.com/Edsuns/ionic-vue3-vite-ts
  2. Run npm install
  3. Run npm run build

Offical Template

  1. Run npm install -g @ionic/cli
  2. Run ionic start ionic-vue tabs --type=vue
  3. cd ionic-vue and npm run build

Finally, comparing the output file sizes of the two projects, the vite version is several times larger.

Code Reproduction URL

https://github.com/Edsuns/ionic-vue3-vite-ts

Ionic Info

Ionic:

Ionic CLI : 6.18.1

Utility:

cordova-res : not installed globally
native-run : not installed globally

System:

NodeJS : v14.18.1
npm : 8.1.4
OS : Windows 10

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Jan 26, 2022
@liamdebeasi liamdebeasi self-assigned this Jan 26, 2022
@liamdebeasi
Copy link
Contributor

Thanks for the issue. I am going to close this as a duplicate of #24280.

We have identified that this is also an issue with Vite. We have an experimental fix that seems to resolve this issue. I will update this thread when I have more to share.

@ionitron-bot
Copy link

ionitron-bot bot commented Feb 26, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Feb 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants