You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, this does not work when running TSX files as transform() is hardcoding the script type to ScriptKind.TS.
From a quick test it would be sufficient to simply remove this parameter, TS seems to figure it out implicitly. Alternatively, using a factory method like used in the tests would be possible as well I guess.
Is there any chance to get TSX for the transform() method? It would be super helpful as it's a tremendous performance improvement compared to using the rollup TS plugin.
Thanks for any response and the awesome work on this piece of code!
The text was updated successfully, but these errors were encountered:
I am trying to use the proposed approach from the docs with direct usage of
transform(code, filename, options)
.Unfortunately, this does not work when running TSX files as
transform()
is hardcoding the script type toScriptKind.TS
.From a quick test it would be sufficient to simply remove this parameter, TS seems to figure it out implicitly. Alternatively, using a factory method like used in the tests would be possible as well I guess.
Is there any chance to get TSX for the
transform()
method? It would be super helpful as it's a tremendous performance improvement compared to using the rollup TS plugin.Thanks for any response and the awesome work on this piece of code!
The text was updated successfully, but these errors were encountered: