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

Reduce size of parser-typescript.js #13431

Merged
merged 3 commits into from Sep 6, 2022
Merged

Conversation

fisker
Copy link
Member

@fisker fisker commented Sep 6, 2022

Description

Separated from #13381, I think better target "main" branch, so the package size can be smaller if we still want publish v2.

Size Change: -4.28 MB (-27%) 🎉

Total Size: 11.6 MB

Filename Size Change
./dist/esm/parser-typescript.mjs 1.44 MB -2.14 MB (-60%) 🏆
./dist/parser-typescript.js 1.44 MB -2.14 MB (-60%) 🏆
ℹ️ View Unchanged
Filename Size
./dist/bin-prettier.js 1.98 kB
./dist/cli.js 501 kB
./dist/doc.js 69.8 kB
./dist/esm 4.1 kB
./dist/esm/parser-angular.mjs 58.8 kB
./dist/esm/parser-babel.mjs 317 kB
./dist/esm/parser-espree.mjs 154 kB
./dist/esm/parser-flow.mjs 1.05 MB
./dist/esm/parser-glimmer.mjs 193 kB
./dist/esm/parser-graphql.mjs 42.8 kB
./dist/esm/parser-html.mjs 161 kB
./dist/esm/parser-markdown.mjs 169 kB
./dist/esm/parser-meriyah.mjs 161 kB
./dist/esm/parser-postcss.mjs 157 kB
./dist/esm/parser-yaml.mjs 129 kB
./dist/esm/standalone.mjs 444 kB
./dist/index.js 1.42 MB
./dist/LICENSE 296 kB
./dist/package.json 616 B
./dist/parser-angular.js 59.2 kB
./dist/parser-babel.js 317 kB
./dist/parser-espree.js 154 kB
./dist/parser-flow.js 1.05 MB
./dist/parser-glimmer.js 193 kB
./dist/parser-graphql.js 43.2 kB
./dist/parser-html.js 162 kB
./dist/parser-markdown.js 170 kB
./dist/parser-meriyah.js 162 kB
./dist/parser-postcss.js 157 kB
./dist/parser-yaml.js 130 kB
./dist/README.md 3.96 kB
./dist/standalone.js 444 kB
./dist/third-party.js 303 kB

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

@fisker fisker changed the base branch from next to main September 6, 2022 10:47
@fisker fisker marked this pull request as ready for review September 6, 2022 11:12
@fisker fisker merged commit cd3e530 into prettier:main Sep 6, 2022
@fisker fisker deleted the typescript-size branch September 6, 2022 12:38
@fisker fisker mentioned this pull request Sep 6, 2022
4 tasks
Copy link
Member

@sosukesuzuki sosukesuzuki left a comment

Choose a reason for hiding this comment

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

Great Job!

medikoo pushed a commit to medikoo/prettier-elastic that referenced this pull request Jan 4, 2024
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

3 participants