unbuild
unbuild copied to clipboard
Not respecting the config
Hi,
I am trying to benchmark various tools on this open source repo: https://github.com/VulcanJS/npm-the-right-way
My goal is to bundle full-stack packages, with client-only, server-only and shared code. It means having 3 or 4 builds per package: client-only code with ESM, server-only code in CJS, and shared code with ESM (and potentially CJS when running in Node).
I couldn't make Unbuild work though, despite using a quite simplistic config. I have taken inspiration from Blitz toolkit build, but with no success (my setup is slightly trickier): https://github.com/blitz-js/blitz/pull/3129/files#diff-acbd8ab446622ef1fa925f81b1df9e4a69f1bfe75dcf209bfd778ad235b3cfc8
You can repro like this:
git clone https://github.com/VulcanJS/npm-the-right-way
cd npm-the-right-way/my-package-unbuild
yarn
yarn run build
The dist folder only contains one index file and empty folder, it's kinda weird and I fail to fix the build.