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

perf: bundle create-vite #9034

Merged
merged 6 commits into from Aug 29, 2022
Merged

Conversation

sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Jul 11, 2022

Description

Bundles and minifies create-vite to reduce download time and requests.

before after diff
create-vite gz 24,009B 39,043B
total gz 119,108B 39,043B -80,065B (-67.2%)
node_modules 468,791B 174,294B -294,497B (-62.8%)

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the Commit Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

@sapphi-red sapphi-red added the p2-nice-to-have Not breaking anything but nice to have (priority) label Jul 11, 2022
@netlify
Copy link

netlify bot commented Jul 11, 2022

Deploy Preview for vite-docs-main ready!

Name Link
🔨 Latest commit 480057e
🔍 Latest deploy log https://app.netlify.com/sites/vite-docs-main/deploys/62cc3d751c28000009993edb
😎 Deploy Preview https://deploy-preview-9034--vite-docs-main.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@@ -0,0 +1,126 @@
// @ts-check
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file needs to be js because it is imported from packages/vite/rollup.plugin.ts and it won't be transpiled.

@netlify
Copy link

netlify bot commented Jul 11, 2022

Deploy Preview for vite-docs-main ready!

Name Link
🔨 Latest commit af67914
🔍 Latest deploy log https://app.netlify.com/sites/vite-docs-main/deploys/62cc3e357af2c00008b5c469
😎 Deploy Preview https://deploy-preview-9034--vite-docs-main.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

bluwy
bluwy previously approved these changes Jul 14, 2022
Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Was hoping git would detect as a move instead so we get to preserve the git history for the index.js, but I don't think that's a big issue.

@patak-dev
Copy link
Member

@sapphi-red would you resolve the conflicts when you have a chance? I think we could release this in tandem with the next Vite minor (as a new create-vite minor)

@sapphi-red
Copy link
Member Author

@patak-dev Which should I rebase on, main or #9406?

@patak-dev
Copy link
Member

@sapphi-red mmm... let's wait for today's meeting, we may have a decision about #9406 then.

@bluwy
Copy link
Member

bluwy commented Aug 28, 2022

Looks like #9406 is merged, so this can be rebased on main now

@sapphi-red sapphi-red marked this pull request as ready for review August 28, 2022 11:46
@sapphi-red
Copy link
Member Author

I've rebased on main 👍

@patak-dev patak-dev merged commit 37ac91e into vitejs:main Aug 29, 2022
@sapphi-red sapphi-red deleted the perf/bundle-create-vite branch August 30, 2022 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants