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

Using with esbuild-loader? #366

Closed
marioaks opened this issue Apr 22, 2021 · 3 comments
Closed

Using with esbuild-loader? #366

marioaks opened this issue Apr 22, 2021 · 3 comments

Comments

@marioaks
Copy link

Hey there,

First of all, thanks for all the hard work on building this plugin. I've used it in lots of projects before and it's amazing!

I was wondering if there was a way to use this plugin with esbuild-loader instead of babel-loader or ts-loader. I want to use esbuild-loader with webpack for performance purposes. I just can't seem to figure out whether esbuild-loader has a getCustomTransformers equivalent that would work.

This might be too niche to ask on here, but I figured I'd ask in case anyone here knew.

Thanks!

@ranisalt
Copy link

I'm using it, just add new ReactRefreshWebpackPlugin() to the plugins and set hot: true to the dev server

@pmmmwh
Copy link
Owner

pmmmwh commented Apr 25, 2021

With their implementation right now I do not believe it is possible - this requires usage of a "plugin" (i.e. a custom transformer) with ESBuild and to my understanding this is only available for the build API, not the transform API which is used in the loader.

@pmmmwh
Copy link
Owner

pmmmwh commented Jun 4, 2021

Closing this as it is a limitation upstream.

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

No branches or pull requests

3 participants