The compiler core for compiling single vue component file.
npm install vue-compiler-core --save-dev
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
-
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
TODO
- vueify for browserify
- vue-loader for webpack