developit / htm

Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.
Apache License 2.0
8.67k stars 170 forks source link

Missing ./preact export map #181

Closed balakine closed 3 years ago

balakine commented 3 years ago

I believe Skypack CDN needs it to turn deep import specifiers into ESM-compatible ones. I'd like to do this:

import { html } from 'https://cdn.skypack.dev/htm@3/preact';

Funny enough they use your other project in their example https://docs.skypack.dev/lookup-urls/lookup-urls#lookup-a-package-export

import { useState } from 'https://cdn.skypack.dev/preact@10/hooks';

Maybe it needs preact in peerDependencies in src/integrations/preact/package.json too.

developit commented 3 years ago

This should be fixed as of version 3.1.0.