Skip to content

Commit 25d1921

Browse files
committed
Swap unpkg for esm to fix failing tests
1 parent 8f4bfcc commit 25d1921

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/source/guides/escape-hatches/_examples/super_simple_chart/super-simple-chart.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { h, render } from "https://unpkg.com/preact?module";
2-
import htm from "https://unpkg.com/htm?module";
1+
import { h, render } from "https://esm.sh/preact";
2+
import htm from "https://esm.sh/htm";
33

44
const html = htm.bind(h);
55

tests/test_web/js_fixtures/component-can-have-child.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { h, render } from "https://unpkg.com/preact?module";
2-
import htm from "https://unpkg.com/htm?module";
1+
import { h, render } from "https://esm.sh/preact";
2+
import htm from "https://esm.sh/htm";
33

44
const html = htm.bind(h);
55

tests/test_web/js_fixtures/exports-two-components.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { h, render } from "https://unpkg.com/preact?module";
2-
import htm from "https://unpkg.com/htm?module";
1+
import { h, render } from "https://esm.sh/preact";
2+
import htm from "https://esm.sh/htm";
33

44
const html = htm.bind(h);
55

tests/test_web/js_fixtures/simple-button.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { h, render } from "https://unpkg.com/preact?module";
2-
import htm from "https://unpkg.com/htm?module";
1+
import { h, render } from "https://esm.sh/preact";
2+
import htm from "https://esm.sh/htm";
33

44
const html = htm.bind(h);
55

0 commit comments

Comments
 (0)