Skip to content

Consider supporting esbuild #42

@jackyzy823

Description

@jackyzy823

I hope that we could build the project with alternative bundler esbuild (and also providing an offline build option)

Rationale:

It is somehow painful to build these js files for some distros (ie Fedora) requiring completely offline and not allowing to use prebuilt js files.

The pain point is that some distros don't have rollup and so these distros need to package rollup first and all its dependencies and required plugins which is quite a lot of work.

At the meanwhile esbuild was supported more widely than rollup. (and maybe was supported on more architectures)

Some distros must patch rollup to use rollup-wasm to support run on more architectures:

for example:

https://github.com/void-linux/void-packages/blob/master/srcpkgs/python3-yt-dlp-ejs/patches/rollup.patch
https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/community/yt-dlp-ejs/rollup-wasm.patch


I've made a patch for 0.3.1 to build with esbuild and offline dependencies (astring, meriyah) , hope it would help for you.
https://github.com/jackyzy823/copr/blob/master/python-yt-dlp-ejs/hatch_with_esbuild.patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions