From 190f4cf76a49791cb8d6d209a3c755cc0305c7a2 Mon Sep 17 00:00:00 2001 From: Neil Pankey Date: Sat, 26 Aug 2023 15:00:28 -0700 Subject: [PATCH] preact: include `Fragment` in standalone module --- src/integrations/preact/standalone.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/integrations/preact/standalone.mjs b/src/integrations/preact/standalone.mjs index 0ceb223..4531da5 100644 --- a/src/integrations/preact/standalone.mjs +++ b/src/integrations/preact/standalone.mjs @@ -11,10 +11,10 @@ * limitations under the License. */ -import { h, Component, createContext, createRef, render } from 'preact'; +import { h, Component, Fragment, createContext, createRef, render } from 'preact'; import { useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue, useErrorBoundary } from 'preact/hooks'; import htm from '../../index.mjs'; const html = htm.bind(h); -export { h, html, render, Component, createContext, createRef, useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue, useErrorBoundary }; +export { h, html, render, Component, Fragment, createContext, createRef, useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue, useErrorBoundary };