saurabhdaware
released this
01 Dec 19:41
·
11 commits
to main
since this release
First release of the package @cross-platform-tools/vite-plugin
. A vite plugin that abstracts out module resolutions to help you build multi-platform bundles from single codebase.
You can have single codebase with different extensions such as-
getData.edge.ts
, getData.server.ts
, getData.client.ts
.
Which generates bundles like -
- dist/edge/getData.js
- dist/server/getData.js
- dist/client/getData.js
- dist/types/getData.<server, edge, client>.d.ts
✨ Features ✨
- Takes care of module resolutions while bundling
- Takes care of module resolutions of tests (when used with vitest)
- Generates platform-specific types
- Presets base library setup configurations
Check out the README.md for full documentation