An open API service indexing awesome lists of open source software.

https://github.com/vueuse/patch-vue-directive-ssr


https://github.com/vueuse/patch-vue-directive-ssr

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# patch-vue-directive-ssr

This package patchs `@vue/compiler-ssr` for build custom directives with SSR/SSG.

```diff
- Custom directive is missing corresponding SSR transform and will be ignored.
```

The patch will make all the custom directive as-is for to be solved at runtime (no transformations unless you configure explicitly).

Related Issues:
- https://github.com/vuejs/vitepress/issues/92#issuecomment-739115781

## Usage

```bash
npm i -D patch-vue-directive-ssr
```

Done.

## Compatibility

Tested with `@vue/[email protected]`.