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: ✨ added support for esbuild plugins #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bashmish
Copy link

@bashmish bashmish commented Jan 14, 2022

Fixes #32

I'm using spawnAsync to run esbuild, so from the node's require point of view it's a sync call, while under the hood I call esbuild async methods build and transform which enables using esbuild plugins. This is battle tested in my company's huge monorepo, performance is still amazing.

I'll release my fork for now to unblock myself (https://www.npmjs.com/package/esbuild-runner-plugins), but I'll gladly work on improving this PR to get this into the mainstream. Looking forward to your feedback!

@reckart
Copy link

reckart commented Aug 4, 2022

Would be great if the PR could be merged - meanwhile using the esbuild-runner-plugins works nicely and helped me running tests on svelte components using mocha and 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.

Cannot use plugins in synchronous API calls
2 participants