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

Support "inject" build option #152

Closed
fabiospampinato opened this issue Apr 14, 2021 · 3 comments
Closed

Support "inject" build option #152

fabiospampinato opened this issue Apr 14, 2021 · 3 comments

Comments

@fabiospampinato
Copy link

esbuild has an "inject" option, which I don't think can be used with this loader yet.

Without the ability to use that function it becomes pretty difficult to switch to "esbuild-loader" in a codebase that had already adopted React's new jsx transform, so it would require adding back all the import statements across many files potentially.

@fabiospampinato
Copy link
Author

nevermind it looks like it is already supported

...options,

@fabiospampinato
Copy link
Author

Reopening as those seem to be trasnform options rather than build options, I'm getting the following error:

error: Invalid option in transform() call: "inject"

@fabiospampinato
Copy link
Author

Closing again as that option won't be supported at all in esbuild it seems: evanw/esbuild#984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant