Part of the fervid
project, an all-in-one Vue compiler.
This crate is responsible for the transformations in the template, such as optimizing the AST or transforming the JS/TS expressions in the AST nodes.
In the future this crate may accommodate the <style>
transformations as well, which are currently in its own crate.
script
A set of Rust APIs for processing Vue's <script>
and <script setup>
.
[ ] <script>
support
data
bindings;props
;computed
;setup
;inject
;emits
;components
;methods
;expose
;name
;directives
;[ ] <script setup>
support
defineProps(...)
and defineProps<...>()
;defineEmits
;defineExpose
;defineOptions
;defineSlots
;[ ] TypeScript support
enum
bindings;[ ] Additional features
useCssVars
;await
;[ ] Compilation order
{ ...legacy, ...setup }
;return
in DEV
mode, then attaching a render function to the _sfc_
object;PROD
mode;name
, scope
, etc.