Skip to content

🔧 Enable AGGRESSIVE_BUNDLE for Pixi build#4703

Merged
matthiasrohmer merged 2 commits intofuturefrom
perf/pixi/bundle-size
Sep 25, 2020
Merged

🔧 Enable AGGRESSIVE_BUNDLE for Pixi build#4703
matthiasrohmer merged 2 commits intofuturefrom
perf/pixi/bundle-size

Conversation

@matthiasrohmer
Copy link
Copy Markdown
Collaborator

This disables babel transpilations for Pixi as all JS features we are using (async/await mainly) are gracefully handled by Closure Compiler already. This brought down bundle size from 110 KiB to 98.7 KiB.

Additionally this PR enables CCs' AGGRESSIVE_BUNDLE mode which surprisingly didn't require much work. Savings aren't that big though, it brought down bundle size to 98.2 KiB with slight DX degredations.

We could even further bring it down to by only supporting ES2015 capable browsers (82.4KB) but this would exclude IE11.

Biggest optimization would be to get rid of marked though, without it and ES2015+ browser support we would land at 48.6 KiB. Creating a follow-up issue to discuss this.

@matthiasrohmer
Copy link
Copy Markdown
Collaborator Author

Created #4704 for further discussion.

@matthiasrohmer matthiasrohmer merged commit 40fbfca into future Sep 25, 2020
@matthiasrohmer matthiasrohmer deleted the perf/pixi/bundle-size branch September 25, 2020 13:53
robinvanopstal added a commit that referenced this pull request Sep 25, 2020
* future:
  ✨ Render resource hints in related recommendations (#4701)
  ♻️ Do not rely on AMP.getState to get Pixi sharing URL (#4707)
  🔧  Enable AGGRESSIVE_BUNDLE for Pixi build (#4703)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants