vue-template-compiler
Advanced tools
Comparing version 2.3.4 to 2.4.0
{ | ||
"name": "vue-template-compiler", | ||
"version": "2.3.4", | ||
"version": "2.4.0", | ||
"description": "template compiler for Vue 2.0", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -82,2 +82,20 @@ # vue-template-compiler | ||
### compiler.ssrCompile(template, [options]) | ||
> 2.4.0+ | ||
Same as `compiler.compile` but generates SSR-specific render function code by optimizing parts of the template into string concatenation in order to improve SSR performance. | ||
This is used by default in `vue-loader@>=12` and can be disabled using the [optimizeSSR](https://vue-loader.vuejs.org/en/options.html#optimizessr) option. | ||
--- | ||
### compiler.ssrCompileToFunction(template) | ||
> 2.4.0+ | ||
Same as `compiler.compileToFunction` but generates SSR-specific render function code by optimizing parts of the template into string concatenation in order to improve SSR performance. | ||
--- | ||
### compiler.parseComponent(file, [options]) | ||
@@ -93,3 +111,3 @@ | ||
- with `{ pad: "line" }`, the extracted content for each block will be prefixed with one newline for each line in the leading content from the original file to ensure that the line numbers align with the original file. | ||
- with `{ pad: "space" }`, the extracted content for each block will be prefixed with one space for each character in the leading content from the original file to ensure that the character count remains the same as the original file. | ||
- with `{ pad: "line" }`, the extracted content for each block will be prefixed with one newline for each line in the leading content from the original file to ensure that the line numbers align with the original file. | ||
- with `{ pad: "space" }`, the extracted content for each block will be prefixed with one space for each character in the leading content from the original file to ensure that the character count remains the same as the original file. |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
122884
3997
112
36