Alins: The most pure and elegant WebUI framework
🚀中文 | Documentation | Playground | Update Log | Feedback Errors/Defects | Gitee | Message Board
babel-preset-alins
Alins babel default comes with jsx and typescript translation functions. After installation, use it in babel.config.json or babel.config.js:
{
"presets": [ "alins" ]
}
Supports importType, ts, and jsx parameters. The importType and ts parameters have the same meaning as in 5; the jsx parameter indicates whether to enable jsx translation, and the default is true.
{
"presets": [
["alins", {
"importType": "esm",
"ts": false,
"jsx": true
}]
]
}