Skip to content

Reduce bundle size of parser-babel.js#12203

Merged
sosukesuzuki merged 1 commit into
prettier:mainfrom
sosukesuzuki:reduce-babel-parser-bundle-size
Jan 30, 2022
Merged

Reduce bundle size of parser-babel.js#12203
sosukesuzuki merged 1 commit into
prettier:mainfrom
sosukesuzuki:reduce-babel-parser-bundle-size

Conversation

@sosukesuzuki

@sosukesuzuki sosukesuzuki commented Jan 30, 2022

Copy link
Copy Markdown
Contributor

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