Owner context is lost when building for production
Version
3.0.7
Reproduction link
https://github.com/b12f/schlechtenburg/tree/minimal
** Important! It's the minimal
branch in that repo**
Steps to reproduce
- Clone the reproduction repository and switch to the
minimal
branch. - Go into the directory, run
npm ci
- Run
npx lerna bootstrap
- Run
npm run dev
, open the page and see a paragraph being rendered - Run
npx vite build
. This builds the same application for production. Go into/docs
, start a local file server, and open the page.
What is expected?
The development and production application produce the same output.
What is actually happening?
We get type errors because inject
ed values are undefined
, even though they were fine when running in development mode.
This is too much for a reproduction. It should have no TS (unless a type error), and no multi packages (lerna). Please boil it down and open a new issue so we can take a look