JSPM

  • Created
  • Published
  • Downloads 166553
  • Score
    100M100P100Q167319F
  • License MIT

Package Exports

  • mkdist

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mkdist) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mkdist

npm version npm downloads Github Actions Codecov

Lightweight file-to-file transpiler

Features

  • Vue SFC support (<script> tag transpilation)
  • Typescript support (via esbuild)
  • Automatic copying of assets

Usage

npx mkdist [rootDir] [--src=src] [--dist=dist] [--format=cjs|esm]

Compared to tsc / babel

✅ Copies all assets (not just TS)

✅ Supports TypeScript for Vue SFC

✅ Faster, thanks to esbuild

🚧 (WIP) .d.ts generation

License

MIT