# vue-component-compiler
**Repository Path**: marklewis/vue-component-compiler
## Basic Information
- **Project Name**: vue-component-compiler
- **Description**: Vue-SFC-2014
- **Primary Language**: JavaScript
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-07-24
- **Last Updated**: 2026-07-24
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# vue-component-compiler
This module compile a single file Vue component like the one below into a CommonJS module that can be used in Browserify/Webpack/Component/Duo builds.
``` html
// app.vue
{{msg}}
```
You can also mix preprocessor languages in the component file:
``` html
// app.vue
h1(class="red") {{msg}}
```
## Usage
``` js
var compiler = require('vue-component-compiler')
compiler.compile(fileContent, function (err, result) {
// result is a common js module string
})
```