@kubb/ast 5.12.3 → 5.12.5
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.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1277,11 +1277,12 @@ function createFile(input) {
|
|
|
1277
1277
|
const extname = node_path.default.extname(input.baseName);
|
|
1278
1278
|
if (!extname) throw new Error(`No extname found for ${input.baseName}`);
|
|
1279
1279
|
const resolvedExports = input.exports?.length ? combineExports(input.exports) : [];
|
|
1280
|
+
const resolvedSources = input.sources?.length ? combineSources(input.sources) : [];
|
|
1280
1281
|
const resolvedImports = (() => {
|
|
1281
1282
|
if (!input.imports?.length) return [];
|
|
1282
1283
|
const sourceParts = [];
|
|
1283
1284
|
const localNames = /* @__PURE__ */ new Set();
|
|
1284
|
-
for (const item of
|
|
1285
|
+
for (const item of resolvedSources) {
|
|
1285
1286
|
const extracted = item.nodes && extractStringsFromNodes(item.nodes);
|
|
1286
1287
|
if (extracted) sourceParts.push(extracted);
|
|
1287
1288
|
if (item.name) localNames.add(item.name);
|
|
@@ -1298,7 +1299,6 @@ function createFile(input) {
|
|
|
1298
1299
|
}];
|
|
1299
1300
|
});
|
|
1300
1301
|
})();
|
|
1301
|
-
const resolvedSources = input.sources?.length ? combineSources(input.sources) : [];
|
|
1302
1302
|
return {
|
|
1303
1303
|
...input,
|
|
1304
1304
|
kind: "File",
|