Wonky bundling
There's some severe wonkiness with the bundling.
By default, rolldown will bundle everything. This means that deps declared under dependencies are being bundled, but still also being downloaded as dependencies. e.g. @terrazzo/token-tools is a prod dependency of @terrazzo/plugin-css, but is also inlined in the bundle.
Secondly, the the typescript stubs for @terrazzo/plugin-css include public types from @terrazzo/parser, which is not included in dependencies and therefore relies on hoisting to be resolved correctly.
Great catch! I’m a little embarrassed I didn’t notice this. Yes any/all improvements here are welcome (and we can also open issues on Rolldown too. Rollup did do a better job of prompting for externals)
Rollup did do a better job of prompting for externals
Yes rolldowns default behaviour of "Oh I couldn't find this it's probably fine" is...somewhat surprising!