Streamlined data metamorphosis instrument 🪄
📦 Duplicates all resources
🖇️ Backs Vue Single File Components
⚡ Swift and lean transformation by esbuild
📄 .d.ts creation for .ts, .js, tsx, jsx and .vue files
Library bundling isn't always the optimal route:
- Original file layout vanishes
- Modern syntax is lost due to transpilation
- Critical CSS is sacrificed by moving it to a global dist (vue)
- Dependencies persistently import from the bundle, regardless of usage (a secondary bundling phase might resolve this, but it's rare during development or for dependencies with side-effects)
Despite the existence of tools like tsc and @babel/cli, they primarily concentrate on transpilation rather than maintaining source-level quality. Furthermore, they're ill-equipped to manage custom extensions like .vue
or resource duplication.
npx mimikra [rootDir] [--src=src] [--dist=dist] [--pattern=glob [--pattern=more-glob]] [--format=cjs|esm] [-d|--declaration] [--ext=mjs|js|ts]
MIT - Made with 💞