Learn how HubSpot’s CMS React platform uses build health checks in your CMS React project.
Component
named export and that it is a React component (a function).fields
named export and that it is a React element (<ModuleFields>...</ModuleFields>
) or an array.meta
named export and it is a JavaScript object.?island
), client import (?client
) or dynamic import (import(...)
) linked from a React module’s code, the code must be able to be imported.package.json
export
/ type
) may actually include ESM import
and export
syntax (e.g., @mui/material@5.15.10
). This can lead to situations where Vite’s compiler outputs an import to that package’s file in a node/modules...
, which results in a runtime syntax error when the code is run. However, with build health checks, HubSpot can ensure that the problem is discovered at build-time rather than by visitors at runtime.
cms-assets.json
file.