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 bundle size by stopping to resolve dependencies #15

Merged
merged 3 commits into from
Aug 11, 2018

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Aug 10, 2018

We will improve rollup configuration to stop resolving dependencies packages.

A marp-core's first release had very huge bundle size over than 1MB. It has bundled external plugins such as markdown-it plugins and KaTeX.

This repo is targeted to Node environment, and not browser. Thus dependent packages should be installed to node_modules by using npm install or yarn install.

On the other hand, we improve to work rollup's tree shaking on katex/package.json. marp-core will bundle only necessary values.

@yhatt yhatt merged commit 4ba9086 into master Aug 11, 2018
@yhatt yhatt deleted the stop-bundle-dependencies-module branch August 11, 2018 13:37
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