linaria icon indicating copy to clipboard operation
linaria copied to clipboard

Can V4 remove the configuration of babelOptions when using language features?

Open zheeeng opened this issue 2 years ago • 1 comments
trafficstars

Describe the enhancement

The V3 doesn't require the babelOptions when using Vite with outbox TS language. V4 requires specifying the babel options, but I'm using Typescript decorators, which are different from the Babel decorators. I can't configure the decorator's features through babel options.

See this issue for details: https://github.com/babel/babel/issues/8864

Is there a possible enhancement for not configuring the babel options just like the V3 does?

Motivation

Using full featured Typescript decorators.

Possible implementations

Related Issues

zheeeng avatar Dec 27 '22 08:12 zheeeng

v4 & v5 use Babel heavily as a AST parser, if support for your language features can't be configured through Babel - I don't think that we can do much. I will let @Anber to chime in, but as this point I don't think that it's a high priority area.

layershifter avatar Sep 30 '23 18:09 layershifter