babel / babel/preset-modules

Not reduce bundle size as expected

Open
#3 5 comments 0 reactions 0 assignees View on GitHub
discussion documentation
Dominant language
JavaScript
Stars
739
Forks
17
PR merge metrics
No merged PRs in 30d

Description

There is a project that has been written in Typescript.
bundle size with `babel/preset-env` is 101.29KB minified & gzipped also bundle size with `babel/preset-modules` is 100.27 KB minified & gzipped.
here is a repository that you can check:
[sample-react-redux-typescript](https://github.com/zerob4wl/sample-react-redux-typescript/tree/babel/preset-modules)
I removed polyfills for a better comparison of bundle size.
you can run `yarn analysis` for viewing bundle size.
node version: v12.12.0

Contributor guide

No contributing guide indexed for this repository

Research direction

Use the linked sample-react-redux-typescript repository and run `yarn analysis` with the Babel preset configurations described in the report. Compare the minified and gzipped output and determine whether the reported size difference is reproducible; done means the cause and expected bundle-size behavior are documented or corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, react, typescript
Domain
build-system, performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.