0.1.4 • Published 8 years ago

vue-compiler-core v0.1.4

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

vue-compiler-core

Dependency Status devDependency Status NPM Version

The compiler core for compiling single vue component file.

How to use

Install

npm install vue-compiler-core --save-dev

Implementation

If you use fisx, the available vue compiler:

API

  • compile(vueParts, options) - compile the vue parts (including the template, script and styles), output the compile result

  • compiler.find(name) - find the builtin lang compiler

  • compiler.register(type, compiler, defaultOptions) - register custom lang compiler

  • parse(filePath, content, parser) - parse vue file to resolved vue parts, support cache

  • registerParser(name, parser, defaultOptions) - register custom builtin lang compiler parser

Compile options

TODO

Reference