You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: benchmarks/ssr/README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
This benchmark renders a table of 1000 rows with 10 columns (10k components), with around 30k normal elements on the page. Note this is not something likely to be seen in a typical app. This benchmark is mostly for stress/regression testing and comparing between`renderToString` and`renderToStream`.
4
4
5
-
To view the results follow the run section. Note that the overall completion time for the results are variable, this is due to other system related variants at run time (available memory, processingect). In ideal circumstances both should finish within similar results.
5
+
To view the results follow the run section. Note that the overall completion time for the results are variable, this is due to other system related variants at run time (available memory, processingpower, etc). In ideal circumstances both should finish within similar results.
6
6
7
-
`renderToStream` pipes the content through a stream which provides considerable performance benefits (faster time-to-first-byte and non-event-loop-blocking) over renderToString. This can be observed through the benchmark.
7
+
`renderToStream` pipes the content through a stream which provides considerable performance benefits (faster time-to-first-byte and non-event-loop-blocking) over`renderToString`. This can be observed through the benchmark.
Copy file name to clipboardExpand all lines: packages/vue-template-compiler/README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
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
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. You will only need it if you are writing build tools with very specific needs. In most cases you should be using[vue-loader](https://github.com/vuejs/vue-loader) or[vueify](https://github.com/vuejs/vueify) instead, both of which use this package internally.
5
+
This package can be used to pre-compile Vue 2.0 templates into render functions to avoid runtime-compilation overhead and CSP restrictions. You will only need it if you are writing build tools with very specific needs. In most cases you should be using[`vue-loader`](https://github.com/vuejs/vue-loader) or[`vueify`](https://github.com/vuejs/vueify) instead, both of which use this package internally.
6
6
7
7
##Installation
8
8
@@ -61,7 +61,7 @@ The optional `options` object can contain the following:
61
61
62
62
-`preserveWhitespace`
63
63
64
-
Defaults to`true`. This means the compiled render functionrespects allthe whitespaces between HTML tags. If set to`false`,all whitespaces between tags will be ignored. This can result in slightly better performance but may affect layout for inline elements.
64
+
Defaults to`true`. This means the compiled render functionpreserves allwhitespace characters between HTML tags. If set to`false`,whitespace between tags will be ignored. This can result in slightly better performance but may affect layout for inline elements.
65
65
66
66
---
67
67
@@ -86,7 +86,7 @@ This is only useful at runtime with pre-configured builds, so it doesn't accept
86
86
87
87
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.
88
88
89
-
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.
89
+
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.