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

chore(react-icons): Do not minimize build output and chunk icon files #373

Merged
merged 2 commits into from Dec 6, 2021

Conversation

ling1726
Copy link
Member

@ling1726 ling1726 commented Dec 6, 2021

Webpack builds a lot slower due when using running on large minified
files. To fix this, the PR adds a .babelrc file with compact: false
so the result is kept prettified (which is the default output of
Typescript).

Additionally, modified convert.js so that the output icons are
chunked. This means that there will only be 500 icons per file. All
contents of chunked files are exported from index.ts. This improves
the build to ~1.5 minutes.

Webpack builds a lot slower due when using running on large minified
files. To fix this, the PR adds a `.babelrc` file with `compact: false`
so the result is kept prettified (which is the default output of
Typescript).

Additionally, modified `convert.js` so that the output icons are
chunked. This means that there will only be 500 icons per file. All
contents of chunked files are exported from `index.ts`. This improves
the build to ~1.5 minutes.
@tomi-msft tomi-msft self-requested a review December 6, 2021 18:58
ling1726 added a commit to ling1726/fluentui that referenced this pull request Dec 6, 2021
Copy link
Contributor

@tomi-msft tomi-msft left a comment

Choose a reason for hiding this comment

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

lgtm!

@tomi-msft tomi-msft merged commit 8d6d0bd into microsoft:master Dec 6, 2021
@ling1726
Copy link
Member Author

addressed by acorjs in acornjs/acorn#1083

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