developit / developit/htm

No build tools route debugging

Offen
#185 1 Kommentar 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
debugging documentation
Vorherrschende Sprache
JavaScript
Sterne
9k
Forks
181
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I've started developing using the stand-alone module from `https://unpkg.com/htm/preact/standalone.module.js` but realize that I really need the debugging tools.

The [documentation](https://preactjs.com/guide/v10/debugging#installation) says to `import "preact/debug"`, but that's not a valid module specifier. There doesn't seem to be a debug standalone bundle on unpkg.

So alternatively, I might be able to adapt the following example code:
```js
import { h, Component, render } from 'https://unpkg.com/preact?module';
import htm from 'https://unpkg.com/htm?module';

const html = htm.bind(h);
```

`https://unpkg.com/preact/debug?module` is not a thing, but the package [preact/debug/dist/debug.module.js](https://unpkg.com/browse/preact@10.5.5/debug/dist/debug.module.js) looks promising. However, it starts of with `import "preact";`, which doesn't work.

So my question is, is there a way to use and debug Preact + HTM without build tools?

If so, I'd love to make a PR for the docs.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginnen Sie mit der Dokumentation zur Installation des Debuggings und den in der Issue erwähnten URLs standalone.module.js, preact?module und preact/debug/dist/debug.module.js. Überprüfen Sie, ob das Debugging von Preact und HTM ohne Build-Tools funktionieren kann; abgeschlossen ist die Aufgabe, wenn entweder eine bestätigte Einrichtung ohne Build dokumentiert ist oder eindeutig dokumentiert ist, dass keine unterstützt wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
documentation
Issue-Typ
Dokumentation
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.