Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Support for Isolated Declarations in TS 5.5 #211

Open
chenjiahan opened this issue Sep 18, 2024 · 1 comment
Open

[Feature]: Support for Isolated Declarations in TS 5.5 #211

chenjiahan opened this issue Sep 18, 2024 · 1 comment
Assignees

Comments

@chenjiahan
Copy link
Member

What problem does this feature solve?

Since SWC already supports Isolated Declarations in TS 5.5, Rslib can provide option to enable it to speed up dts generation.

swc-project/swc#9086

What does the proposed API look like?

  • Detect tsconfig.json#isolatedDeclarations and enable it by default.
  • Provide an option to enable / disable it, like dts. isolated
@Timeless0911
Copy link
Collaborator

Currently, swc-loader does not ship emitIsolatedDts but swc-cli do. We need to do some processing in Rspack's built-in swc-loader to emit the result of transform during build process.

And isolated declarations produce the same result with tsc's bundleless dts, we can also support using isolated emit dts for type bundle with api-extractor.

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

No branches or pull requests

3 participants