Skip to content

fix: warn and skip if import() type symbol cannot be resolved#362

Open
wopian wants to merge 1 commit into
timocov:masterfrom
wopian:patch-1
Open

fix: warn and skip if import() type symbol cannot be resolved#362
wopian wants to merge 1 commit into
timocov:masterfrom
wopian:patch-1

Conversation

@wopian

@wopian wopian commented Jun 15, 2026

Copy link
Copy Markdown

For qualifiers in import() type expressions, symbols may not always be resolvable. For example:

import("node:util").TextEncoderEncodeIntoResult exists in Node 25, but not in Node 24

Without this check, exporting types on older Node versions will throw an error on missing symbols.

With the check, the missing type will be logged but will not crash dts-bundle-generator.

While the source of this issue comes from an upstream change that has a pending bug fix (bun-types using a Node 25-exclusive type), dts-bundle-generator outright crashing on a missing import() type is disruptive and breaks our release pipeline as [email protected] depends on this package to export Typescript type definitions.

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant