Skip to content

wuhy/vue-compiler-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Vue component compile core for vue1 and vue2

Resources

Stars

Watchers

Forks

Packages

No packages published