UNPKG

rax-miniapp-babel-plugins

Version:

rax miniapp babel plugins

26 lines (14 loc) 950 B
# rax-miniapp-babel-plugins [简体中文](./README-zh.md) 🚀 We can optimize the miniapp code to a greater extent by these babel plugins. ## Why? ### Rax miniapp runtime solution #### Native LifeCycle 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. #### Used Built-in Components 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. #### Used Native Component or Npm Component wrotten in native We can get all component information in the pre-compilation stage. ## And More Pre-complie can bring us more optimization possibilities. We will continue to add.