{"library":"babel-plugin-react-live","type":"library","category":null,"description":"A Babel plugin that transforms JavaScript/TypeScript code inside React Live's `<LiveProvider>` into a string, enabling fully typed live code examples. Current stable version is 1.4.5 (last released 2023). It replaces child JSX elements with string literals and converts render callbacks to use `noInline` with `render()` calls. Part of the Eufemia design system from DNB. Differentiators: uses AST for accurate transformation, supports TypeScript, and handles both inline and render callback patterns.","language":"javascript","status":"active","version":"1.4.5","tags":["javascript","babel","babel-plugin","react","react live"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-react-live","imports":["import babelPluginReactLive from 'babel-plugin-react-live'","/* in .babelrc */ { \"plugins\": [[\"babel-plugin-react-live\", { \"componentName\": \"MyComponent\" }]] }","/* in .babelrc */ { \"plugins\": [[\"babel-plugin-react-live\", { \"filesToMatch\": [\"Examples.tsx\"] }]] }"]},{"cmd":"yarn add babel-plugin-react-live","imports":[]},{"cmd":"pnpm add babel-plugin-react-live","imports":[]}],"homepage":null,"github":"https://github.com/dnbexperience/eufemia","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-react-live","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-react-live/compatibility"}}