Closed theKashey closed 1 year ago
Hmmm — yeah relay's runtime does an immediate throw coz it relies on transformations. SWC does this trough a built-in transform.
with esbuild there exists a plugin which you can put through a configuration file.
I do not believe tsm to have first-class support for relay, and in this case, please refer to the above.
Unfortunately tsm
configuration (and esbuild.tranformSync
) does not support plugins or any other way to transform sources.
esbuild only accepts plugins via its build
method, which isn't used here as you've pointed out.
👋 thanks for amazing tool. Being using it for quite a while and everything was fine... until today :(
We have 3 different ways to run our code:
plugin
doing required transformationsModule._compile
in the same way you do to apply required transformations.In order to provide flexibility for the end solution I want to steer issue from "not supporting plugins"(
transformSync
just dont support it) to the actual problem I am facing with graphql.Similar problem might occur while using any library which heavy relies on babel transformation step, and might be not for all of them
tsm
should work (and it does not right now).But is there anything we can do?