You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When bundled for browsers, this modules adds over 170 KB in bundle size via js-yaml (38 KB) and its dependency esprima (130 KB). You can verify the estimated size on bundlephobia.
I noticed that this isn't limited to front-matter. Other packages like gray-matter and yaml-front-matter are in the same 170+ KB ballpark size. However, it's worth mentioning this in the readme (looks like it's one of the todos in #37) because the added size makes this package unsuitable for browsers.
Using a different/custom parser may solve this issue.
The text was updated successfully, but these errors were encountered:
front-matter and gray-matter are using [email protected] which listed esprima as a dependency, but the latest version of js-yaml is not listing it as a dependency anymore.
Probably front-matter to use the latest version of js-yaml would solve this browser bundle size issue.
When bundled for browsers, this modules adds over 170 KB in bundle size via
js-yaml
(38 KB) and its dependencyesprima
(130 KB). You can verify the estimated size on bundlephobia.I noticed that this isn't limited to front-matter. Other packages like
gray-matter
andyaml-front-matter
are in the same 170+ KB ballpark size. However, it's worth mentioning this in the readme (looks like it's one of the todos in #37) because the added size makes this package unsuitable for browsers.Using a different/custom parser may solve this issue.
The text was updated successfully, but these errors were encountered: