facebook / facebook/relay

how to reduce bundle size by hack __generated__ file

Open
#2,276 7 comments 3 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

![a](https://user-images.githubusercontent.com/18245929/34766655-205f8202-f630-11e7-8fa9-3d16d7b2f1de.png)

> you can see, there has too many __generated__ files in the project. it makes the bundle size too big.Anyone find a way to slove this question?

> this result come from dev environment, it hasn't been gzip. In my opinion, the important thing is: __generated__ file has the same size with the source code, maybe bigger than business code. and l guess these file slow down the webpack bundle speed.(l will try to prove it by number)

Contributor guide

Open the contributing guide

Research direction

The issue names generated files and the webpack bundle but gives no repository path or failing test. Begin by reproducing the development build and measuring the generated files' contribution, then trace the webpack entry or configuration that includes them. Done means reducing that contribution without breaking the bundle, but the specific target is not defined here.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.