### Features 🔥 *Blazing fast* builds 😇 CommonJS bundle 🌲 `.mjs` bundle ✨ `.d.ts` bundle + type-checking 🧐 Source maps ### Install 1. Install [`pnpm`] or replace the `pnpm i` part with Yarn or NPM. [`pnpm`]: https://github.com/pnpm/pnpm#readme 2. Run this in your terminal: ```sh pnpm i esbuild rollup rollup-plugin-esbuild rollup-plugin-dts -D wget -O rollup.config.js https://gist.github.com/aleclarson/9900ed2a9a3119d865286b218e14d226/raw/rollup.config.js ``` 3. Ensure your `tsconfig.json` contains these values: ```json "compilerOptions": { "target": "esnext" } ``` 4. Ensure your `package.json` contains these values (and replace the `my-lib` part): ```json "main": "dist/my-lib.js", "module": "dist/my-lib.mjs", "typings": "dist/my-lib.d.ts", ``` 5. Change the `input: 'src/index.ts'` line in `rollup.config.js` if needed. 6. All done! Now do `yarn rollup -c` to build, or add this to your `package.json`: ```json "scripts": { "build": "rollup -c" } ```