Import map used by JS components pointing to astro bundled preact/compat broken

Created on 18 June 2025, 9 days ago

Overview

Inside of astro.config.mjs, <code>integrations: [preact({ compat: true })] was added to support running React code into our Preact code which we wanted so we can import React libraries like useSWR for data fetching.

But doing that changed how Astro bundles our preact/compat library. The expected hooks are not available as exports anymore so it breaks the import maps that JS components rely on.

Proposed resolution

- Fix the importmaps to point to libraries with un-minified exports or see if there is some Astro configuration that can be added to fix this

User interface changes

πŸ› Bug report
Status

Active

Version

0.0

Component

Theme builder

Created by

πŸ‡ΊπŸ‡ΈUnited States hooroomoo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024