unbuild stubbing


**`unbuild`** introduced a new idea called Stubbing. Instead of firing up a watcher to re-trigger the bundling every time you made changes to the source code
so call Passive watcher
does not require you are have another process for that at all. By calling the following command **only once**:



```typeunbuild --stub```



### **Bundleless Build****[#](https://antfu.me/posts/publish-esm-and-cjs#bundleless-build)**
Powered by **`[mkdist](https://github.com/unjs/mkdist)`** - another [@unjs](https://github.com/unjs) package - **`unbuild`** also handles static assets and file-to-file transpiling.




> [Publish ESM and CJS in a single package](https://antfu.me/posts/publish-esm-and-cjs)






