Skip to content

Reduce bundle size of parser-babel.js #12203

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

Merged

Conversation

sosukesuzuki
Copy link
Member

@sosukesuzuki sosukesuzuki commented Jan 30, 2022

Description

Reduce parser-babel.js by 35kb.

Before:

$ node ./scripts/build/build.mjs --print-size --report --file=parser-babel.js
 Building packages 
parser-babel.js.................................................337 kB    DONE  

After:

$ node ./scripts/build/build.mjs --print-size --report --file=parser-babel.js
 Building packages 
parser-babel.js.................................................302 kB    DONE  

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

@sosukesuzuki sosukesuzuki merged commit 54df16c into prettier:main Jan 30, 2022
@sosukesuzuki sosukesuzuki deleted the reduce-babel-parser-bundle-size branch January 30, 2022 15:46
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants