-
Notifications
You must be signed in to change notification settings - Fork 51
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
Option to pass plugins? #30
Comments
@Xriot thanks for this |
i need this too, for @anatine/esbuild-decorators or esbuild-plugin-tsc to be able to use decorators |
need this for svgr support; https://github.com/kazijawad/esbuild-plugin-svgr |
@bstro and @mdbetancourt what if you create a jest plugin for this? is there any advantage of using this? thanks esbuild-jest is using transformSync and i think the esbuild plugin is using build or buildSync i think you can create a jest plugin to perform tsc or svg |
@bstro have you tried this package? |
This in thiory will be covered by #29 . But seems like there is no one interested in adding tests. :( I will try to find some time, I guess. |
@davityavryan It won't solve the issue since it's using Is there any way we can use |
True true. my bad. :/ |
I can't see the option about plugins in |
In another practical way, we can use |
|
closing this issue |
Any hope it gets reopened and wired (in terms of code it is trivial right?). Gain is quite huge cause instead of duplicating the build configuration you can reuse most of your esbuild.config.js without having to import jest specific transformers and speed boost can be kept too (thinking to aliasing react->preact for ex) even if the main gain right now is to avoid to code twice its build. |
I'm trying to figure out how to use https://www.npmjs.com/package/@vanilla-extract/esbuild-plugin |
Esbuild-jest is to transform Javascript and typescript, you can create jest plugin and use it as separate plugin |
@aelbore why forcing to code its build twice? Can, at least, a passthrough of options be supported? You would also note that esbuild plugins are also part of esbuild js transformations so required to reach your goal. |
@rmannibucau |
@aelbore I can see the point you just want to call one function and not use bundler for ex, would it help if esbuild promote plugins to transform api? |
@aelbore - There are cases where this is needed for TypeScript/JavaScript. We were hoping to switch to esbuild, but need to emit decorator metadata with this plugin to support existing code using typeorm. Looks like this will be a blocker for compiling our TypeScript code. Just adding this here to document additional use cases for this. |
Would it be possible to use ESBuild plugins such as esbuild-plugin-sass to support .scss files while running Jest?
The text was updated successfully, but these errors were encountered: