We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbba970 commit f4bec0aCopy full SHA for f4bec0a
test/fixtures/esm/index.js
@@ -1,5 +1,14 @@
1
-import "htm";
2
-import "htm/preact";
3
-import "htm/preact/standalone";
4
-// TODOD: Enable once react distro is ESM compatible.
5
-// import "htm/react";
+import assert from 'assert';
+import htm from 'htm';
+import * as preact from 'htm/preact';
+import * as standalone from 'htm/preact/standalone';
+// TODO: Enable once react distro is ESM compatible.
6
+// import * as react 'htm/react';
7
+
8
+assert(typeof htm === 'function', 'import htm from "htm"');
9
10
+assert(typeof preact.html === 'function', 'import { html } from "preact"');
11
12
+assert(typeof standalone.html === 'function', 'import { html } from "preact/standalone"');
13
14
+console.log('✅ Dist Tests Passed');
0 commit comments