3> This package is auto-generated. For pull requests please see [src/platforms/web/entry-compiler.js](https://github.com/vuejs/vue/tree/dev/src/platforms/web/entry-compiler.js).
4
5▶This package can be used to pre-compile Vue 2.0 templates into render functions to avoid runtime-compilation overhead and CSP restrictions. In most cases you should be using it with [`vue-loader`](https://github.com/vuejs/vue-loader), you will only need it separately if you are writing build tools with very specific needs.
6
7## Installation
· · ·
24{
25 ast: ?ASTElement, // parsed template elements to AST
26▶ render: string, // main render function code
27 staticRenderFns: Array<string>, // render code for static sub trees, if any
28 errors: Array<string> // template syntax errors, if any
· · ·
30```
31
32▶Note the returned function code uses `with` and thus cannot be used in strict mode code.
33
34#### Options
· · ·
86- `directives`
87
88▶ An object where the key is the directive name and the value is a function that transforms an template AST node. For example:
89
90 ``` js
· · ·
98 ```
99
100▶ By default, a compile-time directive will extract the directive and the directive will not be present at runtime. If you want the directive to also be handled by a runtime definition, return `true` in the transform function.
101
102 Refer to the implementation of some [built-in compile-time directives](https://github.com/vuejs/vue/tree/dev/src/platforms/web/compiler/directives).
+ 10 more matches in this file