The Wayback Machine - https://web.archive.org/web/20201121133059/https://github.com/developit/htm/issues/185
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

No build tools route debugging #185

Open
drjayvee opened this issue Nov 2, 2020 · 0 comments
Open

No build tools route debugging #185

drjayvee opened this issue Nov 2, 2020 · 0 comments

Comments

@drjayvee
Copy link

@drjayvee drjayvee commented Nov 2, 2020

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 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:

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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.