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 vite warnings #4501

Merged
merged 3 commits into from
Feb 15, 2022
Merged

Fix vite warnings #4501

merged 3 commits into from
Feb 15, 2022

Conversation

aptkingston
Copy link
Member

Description

This is a quick PR to fix the spam of [vite] Failed to load source map for /node_modules/.vite/... when running the builder in dev. This was just caused by not actually including sourcemaps in the vite config, so I've instructed vite to use sourcemaps when not running in production.

This change would probably also have helped us diagnose the recent issue with safari faster, as it would probably have pointed us to the source of the JS error being thrown due to the look behind regex.

I also addressed the other couple of vite warnings which were printed in the console - namely removing some empty style blocks and fixing some A11y issues.

Before:
image

After (no logs at all from vite in the builder):
image

Copy link
Member

@shogunpurple shogunpurple left a comment

Choose a reason for hiding this comment

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

LGTM - nice one @aptkingston

@aptkingston aptkingston merged commit a4cd0fc into develop Feb 15, 2022
@aptkingston aptkingston deleted the fix-vite-sourcemaps branch February 15, 2022 10:30
@github-actions github-actions bot locked and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants