|
@@ -38,7 +38,7 @@ The optional `options` object can contain the following:
|
|
|
|
|
|
|
|
- `modules`
|
|
- `modules`
|
|
|
|
|
|
|
|
- An array of compiler modules. For details on compiler modules, refer to its [type definition](https://github.com/vuejs/vue/blob/dev/flow/compiler.js#L31) and the [built-in modules](https://github.com/vuejs/vue/tree/dev/src/platforms/web/compiler/modules).
|
|
|
|
|
|
|
+ An array of compiler modules. For details on compiler modules, refer to its [type definition](https://github.com/vuejs/vue/blob/dev/flow/compiler.js#L35) and the [built-in modules](https://github.com/vuejs/vue/tree/dev/src/platforms/web/compiler/modules).
|
|
|
|
|
|
|
|
- `directives`
|
|
- `directives`
|
|
|
|
|
|
|
@@ -55,7 +55,7 @@ The optional `options` object can contain the following:
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
|
|
|
|
|
|
- Refer to the implementation of some [built-in compile-time directives](https://github.com/vuejs/vue/tree/next/src/platforms/web/compiler/directives).
|
|
|
|
|
|
|
+ Refer to the implementation of some [built-in compile-time directives](https://github.com/vuejs/vue/tree/dev/src/platforms/web/compiler/directives).
|
|
|
|
|
|
|
|
- `preserveWhitespace`
|
|
- `preserveWhitespace`
|
|
|
|
|
|
|
@@ -80,7 +80,7 @@ This is only useful at runtime with pre-configured builds, so it doesn't accept
|
|
|
|
|
|
|
|
### compiler.parseComponent(file, [options])
|
|
### compiler.parseComponent(file, [options])
|
|
|
|
|
|
|
|
-Parse a SFC (single-file component, or `*.vue` file) into a [descriptor](https://github.com/vuejs/vue/blob/dev/flow/compiler.js#L131). This is used in SFC build tools like `vue-loader` and `vueify`.
|
|
|
|
|
|
|
+Parse a SFC (single-file component, or `*.vue` file) into a [descriptor](https://github.com/vuejs/vue/blob/dev/flow/compiler.js#L137). This is used in SFC build tools like `vue-loader` and `vueify`.
|
|
|
|
|
|
|
|
#### Options
|
|
#### Options
|
|
|
|
|
|