{"library":"microbundle-crl-with-assets","title":"Microbundle CRL with Assets","description":"This package, `microbundle-crl-with-assets`, is a specialized fork of the zero-configuration JavaScript bundler, Microbundle, tailored for use with `create-react-library`. Its primary function is to bundle tiny JavaScript libraries efficiently using Rollup, offering features like ESnext and async/await support, multiple entry modules, and various output formats (CJS, UMD, ESM) with built-in Terser compression. This particular fork, currently at version 0.13.12, includes specific enhancements for React development, such as defaulting JSX to `React.createElement`, smart bundling of image assets via `rollup-plugin-smart-asset`, and support for legacy decorators (`@babel/plugin-proposal-decorators`) and optional chaining (`@babel/plugin-proposal-optional-chaining`). The release cadence for this fork is dependent on both upstream Microbundle updates and specific feature additions for `create-react-library`. Its key differentiator lies in its React-focused default configurations and asset handling, making it a convenient solution for React library authors.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install microbundle-crl-with-assets"],"cli":{"name":"microbundle","version":null}},"imports":["// In package.json scripts:\n\"scripts\": {\n  \"build\": \"microbundle-crl-with-assets\"\n}","// In package.json scripts:\n\"scripts\": {\n  \"dev\": \"microbundle-crl-with-assets watch\"\n}","// In package.json scripts:\n\"scripts\": {\n  \"build:modern\": \"microbundle-crl-with-assets -f modern,umd\"\n}"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"{\n  \"name\": \"my-awesome-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-crl-with-assets\",\n    \"dev\": \"microbundle-crl-with-assets watch\"\n  }\n}","lang":"javascript","description":"This `package.json` configuration demonstrates how to set up `microbundle-crl-with-assets` for a library. It defines source and output paths for CommonJS, ES Modules, and UMD formats, along with `build` and `dev` scripts to compile and watch the library.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}