@kubb/core 0.39.0 → 0.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16902,7 +16902,16 @@ var kubb = (function (exports) {
16902
16902
  });
16903
16903
  }
16904
16904
  build(file) {
16905
- const importSource = file.imports?.reduce((prev, curr) => {
16905
+ const imports = [];
16906
+ file.imports?.forEach((curr) => {
16907
+ const exists = imports.find((imp) => imp.path === curr.path);
16908
+ if (exists) {
16909
+ exists.name = [...exists.name, ...curr.name];
16910
+ } else {
16911
+ imports.push(curr);
16912
+ }
16913
+ });
16914
+ const importSource = imports.reduce((prev, curr) => {
16906
16915
  if (Array.isArray(curr.name)) {
16907
16916
  return `${prev}
16908
16917
  import ${curr.type ? "type " : ""}{ ${curr.name.join(",")} } from "${curr.path}";`;