Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move 'dev'/'build' events to the end of the process #20380

Merged
merged 2 commits into from
Jan 6, 2023

Conversation

tmeasday
Copy link
Member

Issue: N/A

What I did

Move the point where we call out to 'dev' and 'build' to be after we know it has "worked".

How to test

  1. Start the event log collector (cd scripts; yarn ts-node ./event-log-collector.ts)
  2. Create a sandbox
  3. Run dev + build, check they log boot and dev/build.
  4. Add an error to preview.js (e.g. const = 7;)
  5. Run dev + build, check they log boot and error.

Note the above won't fail in Vite dev mode, you'd have to be more creative.

Also note, only part 3 for build is current tested in CI, would be good to figure out how to change that.

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I still need to test. Also CI is failing.

@tmeasday tmeasday merged commit c9a08fd into next Jan 6, 2023
@tmeasday tmeasday deleted the tom/sb-1079-fix-devbuild-event-firing-too-early-and branch January 6, 2023 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants