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

Improve bundle size of script for browser to be smaller #93

Merged
merged 3 commits into from
Jun 21, 2019

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Jun 20, 2019

We've improved bundle size of script for browser to be smaller.

  • Split up attribute constants of fitting feature to prevent bundling unnecessary functions.
  • Update @marp-team/marpit-svg-polyfill to v1.1.0. It has already became JS size about 5x smaller.
Build Original Improved Difference
Build for Brower
(browser.js)
8071 bytes
(8.1KB)
1714 bytes
(1.7KB)
-6357 bytes
(-6.4KB)
Build for CommonJS
(browser.cjs.js)
7468 bytes
(7.5KB)
1594 bytes
(1.6KB)
-5874 bytes
(-5.9KB)

@yhatt yhatt merged commit d31b11f into master Jun 21, 2019
@yhatt yhatt deleted the be-browser-js-smaller branch June 21, 2019 01:46
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.

1 participant