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 codeso call Passive watcher
does not require you are have another process for that at all. By calling the following command only once:
Bundleless Build#
Powered by
mkdist - another @unjs package - unbuild also handles static assets and file-to-file transpiling.Publish ESM and CJS in a single package
A short tutorial of shipping both ESM and CJS dual formats in a single NPM package.
https://antfu.me/posts/publish-esm-and-cjs

Seonglae Cho