vue-compiler-core

0.1.4 • Public • Published

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

/vue-compiler-core/

    Package Sidebar

    Install

    npm i vue-compiler-core

    Weekly Downloads

    7

    Version

    0.1.4

    License

    ISC

    Last publish

    Collaborators

    • wuhuiyao