0.0.36 • Published 7 months ago

alins-compiler-node v0.0.36

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

🚀 Alins: The most pure and elegant WebUI framework

中文 | Documentation | Playground | Update Log | Feedback Errors/Defects | Gitee | Message Board

alins-compiler-node

alins-compiler-node is the alins compiler in the nodejs environment. All the above plug-ins encapsulate the compilation functions implemented by this tool. They are used as follows:

const {parseAlins} = require('alins-compiler-node');
const code = 'let a=1; a++;';
const result = parseAlins(code);

The parseAlins method is an optional configuration item with three optional attributes:

  1. ts: Whether to support typescript compilation, the default is false
  2. importType: the way to introduce alins, optional values ​​are esm, cjs, iife. The default value is esm, which means using the import statement to introduce alins
  3. filename: current code module file name, automatically generated by default
const {parseAlins} = require('alins-compiler-node');
const code = 'let a=1; a++;';
const result = parseAlins(code, {
     ts: false,
     importType: 'esm',
     filename: 'test.tsx',
});
0.0.36

7 months ago

0.0.35

7 months ago

0.0.34

8 months ago

0.0.33

8 months ago

0.0.32

8 months ago

0.0.31

8 months ago

0.0.30

8 months ago

0.0.29

8 months ago

0.0.28

8 months ago

0.0.27

8 months ago

0.0.26

8 months ago

0.0.25

8 months ago

0.0.24

9 months ago

0.0.23-beta.1

9 months ago

0.0.23

9 months ago

0.0.23-beta.0

9 months ago

0.0.22

9 months ago

0.0.21

9 months ago

0.0.21-beta.0

9 months ago

0.0.20-beta.5

9 months ago

0.0.20-beta.1

9 months ago