rax-miniapp-babel-plugins
Version:
rax miniapp babel plugins
26 lines (14 loc) • 950 B
Markdown
[简体中文](./README-zh.md)
🚀 We can optimize the miniapp code to a greater extent by these babel plugins.
In Rax miniapp runtime solution, we must know in advance which native life cycles developer has used.
In the past, we will register the entire miniapp native life cycle. This will have a certain impact on performance and even lead to memory leaks.
In this solution, we have to traverse all the built-in components of the miniapp. This will have a certain impact on performance and generate a lot of invalid code. But now, we can get this information in the pre-compilation stage.
We can get all component information in the pre-compilation stage.
Pre-complie can bring us more optimization possibilities. We will continue to add.