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

fix(dagre): Tell vite not to ignore try/catch for CommonJS modules. #404

Merged
merged 3 commits into from
Jun 25, 2022

Conversation

dhess
Copy link
Member

@dhess dhess commented Jun 25, 2022

This commit fixes the Chromatic issue we've been having with dagre. It
also preemptively applies the same workaround to the primer-app
package, as it's likely we'd have had the same issue for production
builds of the app.

For details, see:

vitejs/vite#5759

@dhess dhess force-pushed the dhess/fix-chromatic branch 5 times, most recently from e4eda7f to 830c028 Compare June 25, 2022 18:59
This commit fixes the Chromatic issue we've been having with dagre. It
also preemptively applies the same workaround to the `primer-app`
package, as it's likely we'd have had the same issue for production
builds of the app.

For details, see:

vitejs/vite#5759
Now that we can deploy successfully to Chromatic again, building the
`primer-components` Storybook ourselves rather than relying on
Chromatic to build it saves us a separate CI workflow.
@dhess dhess changed the title fix(dagre): Tell vite (or, actually, rollup) not to ignore try/catch. fix(dagre): Tell vite not to ignore try/catch for CommonJS modules. Jun 25, 2022
@dhess dhess added the Ready to merge Ready to merge label Jun 25, 2022
@dhess dhess merged commit 0272a66 into main Jun 25, 2022
@dhess dhess deleted the dhess/fix-chromatic branch June 25, 2022 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge Ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant