npm.io
0.0.36 • Published 2 years ago

babel-plugin-alins

Licence
MIT
Version
0.0.36
Deps
1
Size
6 kB
Vulns
0
Weekly
0
Stars
84

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-plugin-alins

Alins babel plug-in does not include jsx and typescript translation functions. You need to install the corresponding plug-in yourself. It is recommended to use babel-preset-alins directly.

After installation, use in babel.config.json or babel.config.js:

{
   "plugins": [ "alins" ]
}

Supports carrying importType parameter, which has the same meaning as in 5. The default value is esm

{
   "plugins": [
     ["alins", {
       "importType": "esm"
     }]
   ]
}