docs: add note on compiler-sfc/server-renderer usage update [ci skip]
This commit is contained in:
parent
b9deb6e50e
commit
64aa8e26ae
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
> Lower level utilities for compiling Vue Single File Components
|
> Lower level utilities for compiling Vue Single File Components
|
||||||
|
|
||||||
|
**Note: as of 3.2.13+, this package is included as a dependency of the main `vue` package and can be accessed as `vue/compiler-sfc`. This means you no longer need to explicitly install this package and ensure its version match that of `vue`'s. Just use the main `vue/compiler-sfc` deep import instead.**
|
||||||
|
|
||||||
This package contains lower level utilities that you can use if you are writing a plugin / transform for a bundler or module system that compiles Vue Single File Components (SFCs) into JavaScript. It is used in [vue-loader](https://github.com/vuejs/vue-loader), [rollup-plugin-vue](https://github.com/vuejs/rollup-plugin-vue) and [vite](https://github.com/vitejs/vite).
|
This package contains lower level utilities that you can use if you are writing a plugin / transform for a bundler or module system that compiles Vue Single File Components (SFCs) into JavaScript. It is used in [vue-loader](https://github.com/vuejs/vue-loader), [rollup-plugin-vue](https://github.com/vuejs/rollup-plugin-vue) and [vite](https://github.com/vitejs/vite).
|
||||||
|
|
||||||
## API
|
## API
|
||||||
@ -9,6 +11,7 @@ This package contains lower level utilities that you can use if you are writing
|
|||||||
The API is intentionally low-level due to the various considerations when integrating Vue SFCs in a build system:
|
The API is intentionally low-level due to the various considerations when integrating Vue SFCs in a build system:
|
||||||
|
|
||||||
- Separate hot-module replacement (HMR) for script, template and styles
|
- Separate hot-module replacement (HMR) for script, template and styles
|
||||||
|
|
||||||
- template updates should not reset component state
|
- template updates should not reset component state
|
||||||
- style updates should be performed without component re-render
|
- style updates should be performed without component re-render
|
||||||
|
|
||||||
@ -74,6 +77,4 @@ export default script
|
|||||||
|
|
||||||
Options needed for these APIs can be passed via the query string.
|
Options needed for these APIs can be passed via the query string.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
For detailed API references and options, check out the source type definitions. For actual usage of these APIs, check out [rollup-plugin-vue](https://github.com/vuejs/rollup-plugin-vue/tree/next) or [vue-loader](https://github.com/vuejs/vue-loader/tree/next).
|
For detailed API references and options, check out the source type definitions. For actual usage of these APIs, check out [rollup-plugin-vue](https://github.com/vuejs/rollup-plugin-vue/tree/next) or [vue-loader](https://github.com/vuejs/vue-loader/tree/next).
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# @vue/server-renderer
|
# @vue/server-renderer
|
||||||
|
|
||||||
|
**Note: as of 3.2.13+, this package is included as a dependency of the main `vue` package and can be accessed as `vue/server-renderer`. This means you no longer need to explicitly install this package and ensure its version match that of `vue`'s. Just use the `vue/server-renderer` deep import instead.**
|
||||||
|
|
||||||
## Basic API
|
## Basic API
|
||||||
|
|
||||||
### `renderToString`
|
### `renderToString`
|
||||||
|
Loading…
Reference in New Issue
Block a user