Resolve bare .rx specifiers through node_modules so libraries can ship .rx source
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- node.js, typescript
Hướng nghiên cứu
Start with compiler/src/modules.rs, especially join_path and the package_declaration path used for MO-10c. Trace how bare imports are resolved through node_modules, exports, then module/main, and check how resolved .rx files enter checking and lowering. Add coverage for a package exporting an .rx target; done means the example import resolves and is compiled as part of the importing program.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Request
Resolve bare .rx specifiers through node_modules, so that a component library can ship .rx source and consumers import it like any other .rx module:
import { Button } from "@acme/ui/button.rx"
Today
A JS package can already ship a .d.rx beside the file its import resolves to (MO-10c, package_declaration in compiler/src/modules.rs). An .rx import, though, is always joined to the importer's directory (join_path, modules.rs:31). A bare specifier like the one above becomes <importer dir>/@acme/ui/button.rx and fails with MODULE_NOT_FOUND.
Why it matters
Solid component libraries increasingly publish source (.tsx, StyleX source) and let the consumer's compiler build it, rather than shipping dist plus .d.ts. .rx is a natural fit for this, because the consumer's checker then sees the library's real signatures (MO-9), not a hand-written .d.rx. It also matches how @solidjs/vite-plugin already treats .rx as source in the bundle.
Suggested behaviour:
- Resolve the way MO-10c already does: walk
node_modulesupward from the importer, then useexports, thenmodule/main. - An exports target ending in
.rxis then an.rxmodule, checked and lowered as part of the importing program. - A module shared by several programs stays one module, keyed by its factory (CP-4b
module).
Happy to test a branch against a real design system.
- Ngôn ngữ chính
- TypeScript
- Star
- 127
- Fork
- 7
- Merge trung bình
- 15 giờ 42 phút
- Pull request đã merge (30 ngày)
- 63
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của solidjs/reactivescript
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
solidjs/reactivescript#96 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Vite front end keeps serving a failed build after the missing/broken imported module is fixedCó thể đã có người làm @cgaaf đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
solidjs/reactivescript#84 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
solidjs/reactivescript#77 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
solidjs/reactivescript#74 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
solidjs/reactivescript#97 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của solidjs/reactivescript
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
GetStream/stream-chat-react#3467 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
vercel-labs/ui#1139 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Có thể đã có người làm @goranai đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] IntegerRange.contains counts a non-integer just above max as inside an inclusive rangeĐang mởbot:ai-assisted component:platform-js status:untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
midnightntwrk/platform-js#93 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100