We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37ec04b commit 72b5709Copy full SHA for 72b5709
rollup.dts.config.js
@@ -143,6 +143,17 @@ function patchTypes(pkg) {
143
spec.type === 'ExportSpecifier' &&
144
shouldRemoveExport.has(spec.local.name)
145
) {
146
+ // @ts-ignore
147
+ const exported = spec.exported.name
148
+ if (exported !== spec.local.name) {
149
+ // this only happens if we have something like
150
+ // type Foo
151
+ // export { Foo as Bar }
152
+ // there are no such cases atm, so it is unhandled for now.
153
+ throw new Error(
154
+ `removed export ${exported} has different local name: ${spec.local.name}`
155
+ )
156
+ }
157
const next = node.specifiers[i + 1]
158
if (next) {
159
// @ts-ignore
0 commit comments