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

Revert #59 #103

Merged
merged 1 commit into from Nov 28, 2023
Merged

Revert #59 #103

merged 1 commit into from Nov 28, 2023

Conversation

alex-ju
Copy link
Member

@alex-ju alex-ju commented Nov 24, 2023

πŸ› οΈ Description

The change introduced in #59 caused Babel to leave endless traces of error across our products (I encounter them on a regular basis in nomad, vault, design-system, cloud-ui).

The error is always the same

unexpectedly found "\n  Copyright (c) HashiCorp, Inc.\n  SPDX-License-Identifier: BUSL-1.1\n~" when slicing source, but expected "\n  Copyright (c) HashiCorp, Inc.\n  SPDX-License-Identifier: BUSL-1.1\n"

The root cause is in ember-template-compiler, as mentioned in #59 (comment) but until that gets sorted (if it ever gets sorted) we should be preserving the non-white-space-trimming syntax.

I understand this format may have side effects in whitespace-sensitive templates, but these isolated cases can be addressed individually, rather than leaving long traces of compiler errors.

Leaving this here for your consideration.

2023-11-27 at 10 45 04

πŸ‘ Definition of Done

  • New functionality works?
  • Tests added?

πŸ€” Can be merged upon approval?

βœ…

@alex-ju alex-ju requested review from a team, dekimsey and dlaguerta and removed request for a team November 24, 2023 17:00
@dlaguerta
Copy link
Contributor

Created this ticket to (hopefully) come back to fixing the whitespace issues with Ember templating

@dlaguerta dlaguerta merged commit 0f07759 into hashicorp:main Nov 28, 2023
5 checks passed
@alex-ju alex-ju deleted the revert-pr-59 branch November 28, 2023 18:33
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

2 participants