unplugin-use-server-directive
v0.3.1
Published
Universal "use server" functions
Downloads
7
Readme
unplugin-use-server-directive
Install
npm install use-server-directive
npm install --D unplugin-use-server-directive
yarn add use-server-directive
yarn add -D unplugin-use-server-directive
pnpm add use-server-directive
pnpm add -D unplugin-use-server-directive
Usage
Please check out unplugin
to know more about how to use the plugins with unplugin-use-server-directive
in your target bundler.
import useServerDirective from 'unplugin-use-server-directive';
// Example: Rollup
useServerDirective.rollup({
mode: 'server', // or 'client'
filter: {
include: 'src/**/*.{ts,js,tsx,jsx}',
exclude: 'node_modules/**/*.{ts,js,tsx,jsx}',
},
})
Sponsors
License
MIT © lxsmnsyc