Resolve bare .rx specifiers through node_modules so libraries can ship .rx source
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- node.js, typescript
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 127
- Forks
- 7
- Ø Merge
- 15 Std. 42 Min.
- Gemergte PRs (30 T.)
- 63
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus solidjs/reactivescript
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
solidjs/reactivescript#96 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Vite front end keeps serving a failed build after the missing/broken imported module is fixedEvtl. vergeben @cgaaf hat das vor 1 Tag übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
solidjs/reactivescript#84 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
solidjs/reactivescript#77 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
solidjs/reactivescript#74 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 62/100
solidjs/reactivescript#97 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in solidjs/reactivescript
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
GetStream/stream-chat-react#3467 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
vercel-labs/ui#1139 ·
Maintainer antworten meist innerhalb von 1 Tag
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Evtl. vergeben @goranai hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
-
bot:ai-assisted component:platform-js status:untriaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
midnightntwrk/platform-js#93 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100