Weird problem with or without babel.config.json
about @linaria/babel-preset
#1382
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
needs: complete repro 🖥️
Issue need to have complete repro provided
Environment
Description
I met a weird problem when attempting to upgrade from Linaria v2 to v5. It seems that the use of
@linaria/babel-preset
causes@babel/preset-typescript
invalid when utilizing Babel CLI with the--presets
parameter instead of using ababel.config.json
file.For more details you can checkout this repo:
https://github.com/malash/linaria-issue-1382
You can reproduce the issue on the
master
branch, and as a contrast the good-case contains ababel.config.json
and it works well.I believe both usages should function in the same way.
Also, I'm confident this is a bug of Linaria v5 because it doesn't reproduce on Linaria v2, see the good-case-linaria-2 branch.
Reproducible Demo
https://github.com/malash/linaria-issue-1382
The text was updated successfully, but these errors were encountered: