0.0.4 • Published 12 months ago

mimikra v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

cover npm version npm downloads bundle License

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 💞