vue3-ast-decompiler

1.0.4 • Public • Published

vue3-ast-decompiler

This package transforms AST from the @vue/compiler-core back into a html vue template

Installation

npm i vue3-ast-decompiler

Usage

import decompile from 'vue3-ast-decompiler'

const template = decompile(yourAstRootNode);

Be aware that this package heavily uses the SourceInformation from the AST, so if you transform your AST, you need to make sure that your locations are set correctly, or you maybe get a template where attributes are incorrectly positioned and that will not compile

Readme

Keywords

none

Package Sidebar

Install

npm i vue3-ast-decompiler

Weekly Downloads

12

Version

1.0.4

License

none

Unpacked Size

15.1 kB

Total Files

6

Last publish

Collaborators

  • tofandel