https://github.com/vuejs/vue-template-es2015-compiler
Support a subset of handy ES2015 features in Vue 2.0 templates.
https://github.com/vuejs/vue-template-es2015-compiler
Last synced: 8 months ago
JSON representation
Support a subset of handy ES2015 features in Vue 2.0 templates.
- Host: GitHub
- URL: https://github.com/vuejs/vue-template-es2015-compiler
- Owner: vuejs
- Created: 2016-08-20T17:48:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T01:12:53.000Z (almost 3 years ago)
- Last Synced: 2024-10-29T17:06:23.655Z (about 1 year ago)
- Language: JavaScript
- Size: 1.23 MB
- Stars: 61
- Watchers: 5
- Forks: 23
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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