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 hanging builds #1193

Merged
merged 4 commits into from Jan 23, 2019
Merged

Fix hanging builds #1193

merged 4 commits into from Jan 23, 2019

Conversation

louh
Copy link
Member

@louh louh commented Jan 23, 2019

Adding an arbitrary feature (the supermoon toggle) introduced an extremely nasty bug where builds on Heroku hung indefinitely without warning. (This problem was not observed locally, on CI, or even on the staging server.) After narrowing the problem down to the import of a SCSS file, we discovered that the symptoms we very similar to this issue filed on the Parcel repository: parcel-bundler/parcel#1836, and confirmed that the issue is with the repeated import of ../../variables.scss in PaletteCommandsLeft.scss.

This PR removes the temporary supermoon event, re-uses the supermoon toggle as a way to trigger the environment picker "easter egg," and fixes the build issue. Parcel recommends using the native-JS sass module, rather than the older-but-apparently-problematic node-sass. (more info). Note that this is necessary to achieve complete implementation of #1176, and this was a relatively simple switch as sass was already a dependency.

While sass is theoretically slower than node-sass, we don't seem to notice any additional build time because of this switch.

@louh louh merged commit a3695bb into master Jan 23, 2019
@louh louh deleted the louh/revert-supermoon branch January 23, 2019 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant