File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -972,6 +972,7 @@ function patchTsNamespace(nodes: t.Statement[]) {
972972 if ( ! result ) continue
973973
974974 const [ binding , exports ] = result
975+ if ( ! exports . properties . length ) continue
975976
976977 nodes [ i ] = {
977978 type : 'TSModuleDeclaration' ,
Original file line number Diff line number Diff line change @@ -422,9 +422,7 @@ exports[`re-export from lib > both 1`] = `
422422export * from "stub-lib";
423423
424424//#region \\0rolldown/runtime.js
425- declare namespace a_d_exports {
426- export {};
427- }
425+
428426import * as import_stub_lib from "stub-lib";
429427//#endregion
430428export { import_stub_lib as t } ;
@@ -441,9 +439,6 @@ export * from "stub-lib";"
441439
442440exports[`re-export from lib > onlyB 1`] = `
443441"// b.d.ts
444- declare namespace a_d_exports {
445- export {};
446- }
447442import * as import_stub_lib from "stub-lib";
448443type LibType = import_stub_lib.LibType;
449444export { type LibType } ;"
You can’t perform that action at this time.
0 commit comments