vue-compiler-core
v0.1.4
Published
The vue component compile core support vue1 and vue2
Downloads
10
Maintainers
Readme
vue-compiler-core
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:
Vue 1.x compiler, please refer fisx-vue1-loader
Vue 2.x compiler, please refer fisx-vue-loader
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
- vueify for browserify
- vue-loader for webpack