javoski / vue-template-es2015-compiler

Support a subset of handy ES2015 features in Vue 2.0 templates.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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).

  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

About

Support a subset of handy ES2015 features in Vue 2.0 templates.


Languages

Language:JavaScript 100.0%