fent / fent/node-ytdl-core

ESModules?

Open
#652 4 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
4.7k
Forks
852
PR merge metrics
No merged PRs in 30d

Description

I'd like to use certain functions from the package (mostly just the util functions for validation) in a frontend Next.js app. Since the package is currently being exported using CommonJS, no tree-shaking can occur.

This means anyone who visits the site would download the entire `ytdl-core` package even though only a small fraction of it is being used.

If `ytdl-core` offered ECMAScript modules exports (in addition to CommonJS) bundle sizes can be optimized on the web.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.