{"library":"rollup-plugin-use-client","title":"rollup-plugin-use-client","description":"Rollup plugin (v1.4.0) that re-adds the 'use client' directive stripped by Rollup during bundling, essential for React Server Components. Released December 2022, maintained on GitHub. Key differentiator: solves the specific problem of directive removal in Rollup, with configurable directive string and simple ESM API. Unmaintained since 2022.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-use-client"],"cli":null},"imports":["import useClient from 'rollup-plugin-use-client'","const useClient = require('rollup-plugin-use-client')","import useClient from 'rollup-plugin-use-client'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install: npm install --save-dev rollup-plugin-use-client\nimport useClient from 'rollup-plugin-use-client';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'esm'\n  },\n  plugins: [\n    useClient()\n  ]\n};","lang":"typescript","description":"Shows basic setup to add 'use client' directive in Rollup config.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}