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

feat: add bundled esm module to build #875

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SamMousa
Copy link

This PR adds a new subfolder called esm-bundle to the dist folder.
It contains bundled ESM files for use in the browser, they are built using esbuild.

@nwalters512
Copy link
Contributor

Thanks for the PR! Is it possible to do this will Rollup instead since it's already installed?

You'll need to make sure this build happens when npm run build is run.

@SamMousa
Copy link
Author

No doubt that it is possible, but rollup is needlessly complex for this library.
I was actually looking at removing rollup altogether, since it is only used for 1 build type that can also be served by esbuild.

@SamMousa
Copy link
Author

Oh and also I don't know how rollup works and have no ambition of getting more familiar with it xD

@SamMousa
Copy link
Author

You'll need to make sure this build happens when npm run build is run.

Fixed!

@SamMousa
Copy link
Author

SamMousa commented Feb 4, 2025

Any interest in merging this (using esbuild)?

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.

2 participants