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]: source build 不生效 #6325

Open
slevisp opened this issue Oct 2, 2024 · 1 comment
Open

[Bug]: source build 不生效 #6325

slevisp opened this issue Oct 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@slevisp
Copy link

slevisp commented Oct 2, 2024

版本信息

System:
OS: macOS 15.0
CPU: (12) arm64 Apple M3 Pro
Memory: 3.05 GB / 36.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Safari: 18.0

问题详情

按照教程设置ui的package.json exports ./utils和./component的source,并且在web的modern.config.ts里设置experiments.sourceBuild: true,但是设置之后,在import ui的时候,并不可以使用exports的路径,而是提示ui的包路径。

复现链接

https://github.com/slevisp/modern_mono

复现步骤

pnpm install之后,
可以尝试在web/src/routes/page.tsx里去import ui,可以看到提示的路径。

@slevisp slevisp added the bug Something isn't working label Oct 2, 2024
@zllkjc
Copy link
Member

zllkjc commented Oct 15, 2024

并不可以使用exports的路径,而是提示ui的包路径。

这个可否提供更多的说明

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