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

[Feature Request]: Optimize library bundle #1601

Open
wre232114 opened this issue Jul 12, 2024 · 2 comments
Open

[Feature Request]: Optimize library bundle #1601

wre232114 opened this issue Jul 12, 2024 · 2 comments
Assignees
Labels
enhancement: pending triage Untriaged enhancement

Comments

@wre232114
Copy link
Member

What problem does this feature solve?

Currently Farm emits runtime when bundling library, it makes output bloated

see #250

What does the proposed API look like?

Rollup/Esbuild style output

@JakubCzarlinski
Copy link

I came across Farm the other day and heavily considering using it for a couple of my projects since the build times are better than Vite's - really loving the boost in performance :) I am a little concerned about the base bundle size.

The ./dist/ of bun create vite bare-vite-svelte --template svelte-ts is about 15KB, whilst the equivalent bundle for Farm is about 180KB.

(icons excluded, source maps disabled)

Do you have any pointers for how to reduce this bundle size / any updates on this feature request?

Thanks :)

@wre232114
Copy link
Member Author

It's a Farm tree shake issue, we made a reproduction here github.com/shulandmimi/farm-namespace-treeshake, it will be optimized today or tomorrow

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

No branches or pull requests

3 participants