The Wayback Machine - https://web.archive.org/web/20220718112821/https://github.com/vuejs/create-vue/pull/121
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: exclude transpiled prompts code #121

Merged
merged 1 commit into from Jul 12, 2022

Conversation

sapphi-red
Copy link
Contributor

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

Since this package supports Node 14+, the transpiled prompts code is not used.
https://github.com/terkelg/prompts/blob/a0c1777ae86d04e46cb42eb3af69ca74ae5d79e2/index.js#L11-L14
This PR removes that from bundle.

before after diff
gz 53,746B 39,690B -14,056B (-26.2%)
node_modules 319,900B 232,067B -87,833B (-27.5%)

@sapphi-red sapphi-red force-pushed the perf/exclude-transpiled-prompts-code branch from 2ffd199 to 14b6667 Compare Jul 11, 2022
Copy link
Member

@sodatea sodatea left a comment

Cool! Never thought about that!

@sodatea sodatea merged commit e50e5d8 into vuejs:main Jul 12, 2022
@sapphi-red sapphi-red deleted the perf/exclude-transpiled-prompts-code branch Jul 12, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants