Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Build size very large #949

Open
swaroopsm opened this issue Nov 25, 2020 · 0 comments
Open

Build size very large #949

swaroopsm opened this issue Nov 25, 2020 · 0 comments

Comments

@swaroopsm
Copy link

swaroopsm commented Nov 25, 2020

Explanation

Hello folks,
First off, kudos to such a powerful library for analyzing the readability and seo scores.

I am currently using the yoastseo package in a react app using the Worker API as described in here: https://github.com/Yoast/javascript/blob/develop/packages/yoastseo/README.md#usage
However, I see that my bundle build size (production) is about ~2.4MB which is very large considering my requirement.
On further observation of the bundle, I noticed that the bundle includes lots of language specific code (transitionWords etc.).

Would like to understand if the following is possible:

  • Anything I can do to reduce the bundle size?
  • I currently use only few languages (en, de, es, pt, fr, it). Is there a way I can specify the bundle to include only the code for the these languages via a config param.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant