{"library":"microbundle-crl","title":"Microbundle CRL","description":"Microbundle-crl is a specialized fork of the popular zero-configuration JavaScript bundler, Microbundle, currently at version `0.15.1`. It is explicitly designed for React projects and serves as the core bundler for `create-react-library`. Powered by Rollup, this tool simplifies the bundling process for small JavaScript libraries by providing opinionated, sensible defaults and generating multiple output formats including CommonJS (CJS), Universal Module Definition (UMD), and ECMAScript Modules (ESM) with integrated Terser compression. Key differentiators of this fork include automatically configuring the `jsx` option to `React.createElement` and pre-integrating Babel plugins for legacy decorators and optional chaining, making it particularly well-suited for building React component libraries and applications utilizing state management solutions like MobX. The project maintains an active release cadence, mirroring upstream Microbundle updates while incorporating its specific React-centric features.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install microbundle-crl"],"cli":{"name":"microbundle","version":null}},"imports":["npm install -D microbundle-crl\n# then run via package.json script: \"build\": \"microbundle\"","{ \"source\": \"src/index.js\" }","{ \"main\": \"dist/index.js\" }","{ \"module\": \"dist/index.mjs\" }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"{\n  \"name\": \"my-react-lib\",\n  \"version\": \"1.0.0\",\n  \"source\": \"src/index.js\",\n  \"main\": \"dist/index.js\",\n  \"module\": \"dist/index.mjs\",\n  \"unpkg\": \"dist/index.umd.js\",\n  \"scripts\": {\n    \"build\": \"microbundle\",\n    \"dev\": \"microbundle watch\"\n  },\n  \"devDependencies\": {\n    \"microbundle-crl\": \"^0.15.1\"\n  }\n}\n// src/index.js\nimport React from 'react';\n\nexport const MyComponent = ({ greeting }) => {\n  const message = `Hello, ${greeting || 'World'} from MyComponent!`;\n  return <div>{message}</div>;\n};\n\nexport const anotherFunction = (a, b) => a + b;\n\nconsole.log('My React Library loaded.');","lang":"javascript","description":"This quickstart demonstrates setting up `package.json` for a simple React library and a minimal component, then building it using `microbundle-crl`.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}