# vue-template-es2015-compiler

> Post compiler for Vue template render functions to support ES2015+ features

Latest version **1.9.1** (published 2019-02-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-template-es2015-compiler
pnpm add vue-template-es2015-compiler
yarn add vue-template-es2015-compiler
bun add vue-template-es2015-compiler
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.9.1 |
| Published | 2019-02-22 |
| First published | 2016-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/vue-template-es2015-compiler) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 490.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 61 |
| Author | Evan You |
| Maintainers | yyx990803 |

## Links

- npm: https://www.npmjs.com/package/vue-template-es2015-compiler
- Repository: https://github.com/vuejs/vue-template-es2015-compiler
- Homepage: https://github.com/vuejs/vue-template-es2015-compiler#readme
- Issues: https://github.com/vuejs/vue-template-es2015-compiler/issues
- npm.io page: https://npm.io/package/vue-template-es2015-compiler

## Recent versions

- 1.9.1 (latest) — 2019-02-22
- 1.9.0 — 2019-02-21
- 1.8.2 — 2019-01-23
- 1.8.1 — 2019-01-10
- 1.8.0 — 2019-01-10
- 1.7.0 — 2019-01-09
- 1.6.0 — 2017-10-11
- 1.5.3 — 2017-06-29
- 1.5.2 — 2017-04-10
- 1.5.1 — 2017-02-25
- 1.5.0 — 2017-01-05
- 1.4.2 — 2016-12-24
- 1.4.1 — 2016-12-23
- 1.4.0 — 2016-12-13
- 1.3.2 — 2016-11-28
- … 10 more at https://npm.io/package/vue-template-es2015-compiler/versions

## README

This is an internal package used by `vue-loader` and `vueify`. It processes the raw render functions generated by `vue-template-compiler` to:

1. add support to ES2015 features in template expressions via Buble. (see [supported features here](https://buble.surge.sh/guide/#supported-features)).

**Note:** since version 1.8.0, object rest spread usage inside templates are transpiled to `Object.assign` calls by default. This means if you need to support IE, you will need to polyfill `Object.assign`. (Latest version of Vue CLI will do this for you).

2. remove the `with` block inside render functions to make it strict-mode compliant. This is performed only at build time so that the base template compiler can be extremely small and lightweight.

The buble implementation is built from a fork at https://github.com/yyx990803/buble

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