Skip to content

Latest commit

 

History

History
69 lines (63 loc) · 2.42 KB

README.md

File metadata and controls

69 lines (63 loc) · 2.42 KB

Toolchain

Tasks Tools Options
Building
Linting
Testing
CI/CD

Publish storybook

Build strategy

Produce

  • .js
  • .d.ts
  • .map
  • .css

Bundle dependencies?

Pros

  • Smaller download size when importing from html <script> tag via CDN.

Cons

  • Unnecessary build process, library would be bundled by the final user.
  • Can not share project dependencies, which cause redundant code and cause different globals for the same dependency.

tsc caveats

Path alias doesn't work in .d.ts files. check microsoft/TypeScript#16607 css won't be copied to dist solution: vite-plugin-dts