mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
Update README.md
This commit is contained in:
parent
c04d0ba667
commit
d2d84c3948
1 changed files with 2 additions and 2 deletions
|
|
@ -58,14 +58,14 @@ that being said, this feature is optional and can be [disabled](https://github.c
|
|||
|
||||
# Release in CJS, ESM or both
|
||||
|
||||
Contrary to what other guides or project starters may suggest, you don't necessarily need Vite/rollup to bundle your library,
|
||||
Contrary to what other guides or project starters may suggest, you don't need to bundle your library with something like Vite/Rollup,
|
||||
nor do you need to fragment your modules into smaller, independently published units on NPM under the package/ directory for your module
|
||||
to be tree-shakable (e.g., `@your-module/submodule1`, `@your-module/submodule2`).
|
||||
|
||||
The reality is much simpler. The responsibility of bundling lies with the final application; your role involves merely
|
||||
publishing `.js` files and types declaration `.d.ts` files, which are the output of `tsc`.
|
||||
|
||||
And that's all there is to it!
|
||||
Your role is to decide what flavor of JS you want to distribute, that's all there is to it!
|
||||
|
||||
## CJS only (default)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue