The unloader likely won't support CJS because the plugin's hooks are asynchronous, while CJS only supports synchronous operations.
Reposted from
Kevin Deng
unplugin is for bundlers, and now there's unloader for the Node.js runtime!
unloader aims to support plugins for unplugin, Vite, and Rollup running in Node.js without pre-bundling!
🚧 This project is actively being developed, so APIs may change at any time.
github.com/sxzz/unloader
unloader aims to support plugins for unplugin, Vite, and Rollup running in Node.js without pre-bundling!
🚧 This project is actively being developed, so APIs may change at any time.
github.com/sxzz/unloader
Comments