CLI doesn't work on typescript files without a babelrc / Setting babelConfig in transform() has no effect #1218
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
cat: typings 👮
Typescript types related issues
needs: complete repro 🖥️
Issue need to have complete repro provided
Environment
"@linaria/babel-preset": "^4.4.3"
v17.4.0
Description
Running the CLI on a typescript file will fail when there is no babel config present in the folder, setting
@babel/preset-typescript
Calling
transform()
, exported from@linaria/babel-preset
directly with ababelConfig
parameter required seems to have no effect. A present babel config is the only apparent solution.In both cases, some error relating to whatever typescript syntax is used in the file is thrown.
Reproducible Demo
@linaria/cli
command or thetransform
functionThe text was updated successfully, but these errors were encountered: