Lightweight file-to-file transformer
$ npm install mkdist
Lightweight file-to-file transformer
✅ Copies all assets
✅ Supports Vue Single File Components
✅ Fast and minimal transform by esbuild
✅ .d.ts
generation for .ts
, .js
and .vue
files
✅ Support postcss (autoprefixer, cssnano and postcss-nested enabled out of the box!)
Bundling libraries isn't always the best choice:
While there are tools like tsc and @babel/cli, they mostly focus on transpiling rather than keeping source level quality. Also they lack support for handling custom extensions like .vue
and copying assets.
npx mkdist [rootDir] [--src=src] [--dist=dist] [--pattern=glob [--pattern=more-glob]] [--format=cjs|esm] [-d|--declaration] [--ext=mjs|js|ts]
© 2010 - cnpmjs.org x YWFE | Home | YWFE