As work-around for the upstream issue, let's convert this component into React component instead of Astro one. It's then loaded on client side after Vite's define is applied, it seems.
Note that the original bug is not visible when developing TutorialKit in the monorepo. It only appears in projects that are using the actual packages. Tested locally by linking packages with pnpm.
As work-around for the upstream issue, let's convert this component into React component instead of Astro one. It's then loaded on client side after Vite's
define
is applied, it seems.Note that the original bug is not visible when developing TutorialKit in the monorepo. It only appears in projects that are using the actual packages. Tested locally by linking packages with
pnpm
.