babel-preset-alins
TypeScript icon, indicating that this package has built-in type declarations

0.0.36 • Public • Published

stars forks version downloads jsdelivr visitors

author license Size TopLang issue Dependent

🚀 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
     }]
   ]
}

/babel-preset-alins/

    Package Sidebar

    Install

    npm i babel-preset-alins

    Weekly Downloads

    7

    Version

    0.0.36

    License

    MIT

    Unpacked Size

    6.1 kB

    Total Files

    6

    Last publish

    Collaborators

    • theajack