Skip to content

Commit 50bdbd1

Browse files
authored
docs(examples): update for parcel (#1081)
Not sure when these requirements were added, but type needs to be module and jsxRuntime needs to be classic
1 parent 17a38f7 commit 50bdbd1

File tree

63 files changed

+86
-46
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+86
-46
lines changed

cypress/test-apps/js/app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @jsxRuntime classic */
12
/** @jsx h */
23
import {
34
autocomplete,

cypress/test-apps/js/categoriesPlugin.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @jsxRuntime classic */
12
/** @jsx h */
23
import { AutocompletePlugin, getAlgoliaFacets } from '@algolia/autocomplete-js';
34
import { SearchClient } from 'algoliasearch/lite';

cypress/test-apps/js/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
</div>
4343
</div>
4444

45-
<script src="env.ts"></script>
46-
<script src="darkMode.ts"></script>
47-
<script src="app.tsx"></script>
45+
<script type="module" src="env.ts"></script>
46+
<script type="module" src="darkMode.ts"></script>
47+
<script type="module" src="app.tsx"></script>
4848
</body>
4949
</html>

examples/github-notification-filters/app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @jsxRuntime classic */
12
/** @jsx h */
23
import { autocomplete, AutocompleteSource } from '@algolia/autocomplete-js';
34
import { createTagsPlugin, Tag } from '@algolia/autocomplete-plugin-tags';

examples/github-notification-filters/components/FilterHeader.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @jsxRuntime classic */
12
/** @jsx h */
23
import { h, Fragment } from 'preact';
34

examples/github-notification-filters/components/PanelLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @jsxRuntime classic */
12
/** @jsx h */
23
import { AutocompleteState } from '@algolia/autocomplete-js';
34
import { ComponentChildren, h } from 'preact';

examples/github-notification-filters/components/PostfixItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @jsxRuntime classic */
12
/** @jsx h */
23
import { AutocompleteComponents } from '@algolia/autocomplete-js';
34
import { h } from 'preact';

examples/github-notification-filters/components/PrefixItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @jsxRuntime classic */
12
/** @jsx h */
23
import { h } from 'preact';
34

examples/github-notification-filters/components/QueryItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @jsxRuntime classic */
12
/** @jsx h */
23
import { h } from 'preact';
34

examples/github-notification-filters/components/TagItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @jsxRuntime classic */
12
/** @jsx h */
23
import { Tag } from '@algolia/autocomplete-plugin-tags';
34
import { h } from 'preact';

0 commit comments

Comments
 (0)