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

[Bug]: Using dts.bundle: true does not fully bundle. #470

Open
Zhang-Wei-666 opened this issue Nov 22, 2024 · 1 comment
Open

[Bug]: Using dts.bundle: true does not fully bundle. #470

Zhang-Wei-666 opened this issue Nov 22, 2024 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@Zhang-Wei-666
Copy link

Version

System:
  OS: Windows 11 10.0.22631
  CPU: (20) x64 13th Gen Intel(R) Core(TM) i9-13900H
  Memory: 10.85 GB / 31.75 GB
Browsers:
  Edge: Chromium (128.0.2739.42)
  Internet Explorer: 11.0.22621.3527

npmPackages: "@rslib/core": "^0.1.0"

Details

使用 dts.bundle: true 并没有打包完全


Using dts.bundle: true does not fully bundle.

Reproduce link

https://github.com/Zhang-Wei-666/rslib-bug-report/tree/2

Reproduce Steps

运行以下命令进行构建

pnpm i && pnpm build

查看打包产物 dist/index.d.ts 中可以发现以下内容未被打包

import type { UpperCaseCharacters } from './internal';
import type { WordSeparators } from './internal';

Run the following command to build.

pnpm i && pnpm build

Please check the packaged product at dist/index.d.ts to find the following content that has not been packaged.

import type { UpperCaseCharacters } from './internal';
import type { WordSeparators } from './internal';
@Timeless0911
Copy link
Collaborator

This may be an issue of api-extractor when bundling complex 3rd dependecies, similar to #411

We are collecting issues for that now and this issue will be tracked too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants