How to pass getCustomTransformers
with new 'zero-config' typescript?
#11341
-
I'm trying to migrate away from this:
To using Any tips? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
We use cc @mrmckeb |
Beta Was this translation helpful? Give feedback.
-
That's correct, thanks @shilman. Transformers are not an official feature of TypeScript, and they have no plans to support this in the immediate future from what I've seen. Of course, I completely understand why you may want to use them - I have a TypeScript plugin published on NPM and people regularly ask if they can use it at build time. As @shilman mentions, if you need to use them, you'll need to reimplement the TypeScript support yourself at this stage, sorry. To turn this off for now, just remove the existing rules for Babel loader. |
Beta Was this translation helpful? Give feedback.
-
Confirmed, ty. |
Beta Was this translation helpful? Give feedback.
We use
babel-loader
to process typescript--notts-loader
--so you if you want to use custom transformers you'll have to disable zero-config TS (which AFAIK isn't possible yet, but we should add) and stick with your manual configuration.cc @mrmckeb