-
Notifications
You must be signed in to change notification settings - Fork 63
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
Customize @babel/plugin-transform-typescript options #33
Comments
pi0
added a commit
that referenced
this issue
May 28, 2021
Thanks for describing issue.
Feel free opening more issues if anything else was missing. |
@pi0 It now crashes with:
See my comment in 914499c |
Fixed in 0.10.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to be able to pass custom options to
@babel/plugin-transform-typescript
In particular, for interoperability reasons, I need to support
declare x: string
class members, and for that I need to use this:However, it doesn't seem to be possible to achieve with
opts.babel
. It's not even possible to disableopts.ts
and re-apply the same plugins manually because you onlypush
custom plugins and one of them must beunshift
ed:jiti/src/babel.ts
Lines 21 to 26 in f25960a
jiti/src/babel.ts
Lines 33 to 35 in f25960a
Basically I have to copy/paste the entire
babel.ts
in order to setup typescript options.Suggestions
opts.ts
to support not only boolean but also object with@babel/transform-typescript
optionsopts.babel
to support not only subset of options but also a config customization callback which will be called directly beforetransformSync
The text was updated successfully, but these errors were encountered: