# vue-compiler-core

> The vue component compile core support vue1 and vue2

Latest version **0.1.4** (published 2017-04-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-compiler-core
pnpm add vue-compiler-core
yarn add vue-compiler-core
bun add vue-compiler-core
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2017-04-30 |
| First published | 2016-12-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Known vulnerabilities | 0 (+8 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | sparklewhy@gmail.com |
| Maintainers | wuhuiyao |
| Keywords | vue, vue2, compiler, vue component |

## Links

- npm: https://www.npmjs.com/package/vue-compiler-core
- Repository: https://github.com/wuhy/vue-compiler-core
- Homepage: https://github.com/wuhy/vue-compiler-core#readme
- Issues: http://github.com/wuhy/vue-compiler-core/issues
- npm.io page: https://npm.io/package/vue-compiler-core

## Dependencies (10)

- [json5](https://npm.io/package/json5.md) ^0.5.1
- [postcss](https://npm.io/package/postcss.md) ^5.2.6
- [resolve](https://npm.io/package/resolve.md) ^1.2.0
- [hash-sum](https://npm.io/package/hash-sum.md) ^1.0.2
- [de-indent](https://npm.io/package/de-indent.md) ^1.0.2
- [lru-cache](https://npm.io/package/lru-cache.md) ^4.0.2
- [source-map](https://npm.io/package/source-map.md) ^0.5.6
- [object-assign](https://npm.io/package/object-assign.md) ^4.1.0
- [convert-source-map](https://npm.io/package/convert-source-map.md) ^1.3.0
- [postcss-selector-parser](https://npm.io/package/postcss-selector-parser.md) ^2.2.2

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2017-04-30
- 0.1.3 — 2016-12-19
- 0.1.2 — 2016-12-19
- 0.1.1 — 2016-12-13
- 0.1.0 — 2016-12-13

## README

vue-compiler-core
======
[![Dependency Status](https://david-dm.org/wuhy/vue-compiler-core.svg)](https://david-dm.org/wuhy/vue-compiler-core) [![devDependency Status](https://david-dm.org/wuhy/vue-compiler-core/dev-status.svg)](https://david-dm.org/wuhy/vue-compiler-core#info=devDependencies) [![NPM Version](https://img.shields.io/npm/v/vue-compiler-core.svg?style=flat)](https://npmjs.org/package/vue-compiler-core)

> The compiler core for compiling single vue component file. 

## How to use

### Install

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

### Implementation

If you use [fisx](https://github.com/wuhy/fisx), the available vue compiler:

* Vue 1.x compiler, please refer [fisx-vue1-loader](https://github.com/wuhy/fisx-vue1-loader)

* Vue 2.x compiler, please refer [fisx-vue-loader](https://github.com/wuhy/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](https://github.com/vuejs/vueify) for browserify
* [vue-loader](https://github.com/vuejs/vue-loader) for webpack

---
_Source: https://npm.io/package/vue-compiler-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
