v5.0.0-beta.89
@kubb/core
Bug Fixes
-
Keep a resolver's
fileoverride when a plugin resolver and the CLI load different copies of@kubb/core.A CommonJS
kubb.config.cjsloads@kubb/coreas CommonJS while the CLI runs the ESM build, so a plugin's resolver is notinstanceofthe driver'sResolver.Resolver.mergerelied on that check and fell back to the instance's enumerable fields, which dropfile(it is bound through#baseName, not set as an own property). The merged resolver then used the built-intoFilePathcasing, so generated file names lost their plugin casing (Pet.tsbecamepet.ts) even though the identifiers stayed correct.Resolver.mergenow reads a resolver's build options through a sharedSymbol.forbrand instead ofinstanceof, so thefileoverride survives across@kubb/corecopies. (#3733,38b5258)
Contributors
Thanks to everyone who contributed to this release: