Lite Mode
By default, this package exports our Preview Widget component which makes switching experiments and test groups easier. If you would like to disable this, which in turn will reduce the over bundle size of the package, you may use our lite
mode.
To enable, update all imports to pull from -lite
. For example,
Update:
import { IntelligemsHydrogenProvider } from "@intelligems/headless/hydrogen"
to
import { IntelligemsHydrogenProvider } from "@intelligems/headless/hydrogen-lite"
This will import a separate package that excludes the additional code needed for preview mode.
Last updated