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 dependencies #375

Merged
merged 16 commits into from
Aug 15, 2021
Merged

Reduce dependencies #375

merged 16 commits into from
Aug 15, 2021

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Aug 13, 2021

Reduce dependencies by bundling and removing some modules into Marp CLI. (250 dependencies -> 188 dependencies)

  • pptxgenjs: Bundled. Require to alias jszip to minified version by rollup plugin.
  • chrome-launcher: Bundled. Revert to use internal chrome-launcher/dist/chrome-finder as same as before Upgrade dependent packages to the latest version #212.
    • By this change, is-wsl has to require as dependency. rollup cannot bundle it because of dynamic require().
  • express: Bundled. It will be imported dynamically only when used --server option.
  • screenfull: Removed. Now we are using a lightweight version that is only supporting active modern browsers. It also brings reduced size of runtime JS for bespoke template (-1.5kb).

@yhatt yhatt merged commit e4504d8 into main Aug 15, 2021
@yhatt yhatt deleted the refactor-to-reduce-dependent-packages branch August 15, 2021 15:47
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