mimikra
v0.0.4
Published
๐ Sleek data morphing tool from one file to another
Downloads
8
Readme
Mimikra ๐ง
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
โ Rationale ๐ค
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.
๐ Deployment ๐
npx mimikra [rootDir] [--src=src] [--dist=dist] [--pattern=glob [--pattern=more-glob]] [--format=cjs|esm] [-d|--declaration] [--ext=mjs|js|ts]
๐ License
MIT - Made with ๐