Skip to content

[BUGFIX] Improve de-typing .gts files - #10659

Merged
ef4 merged 1 commit into
ember-cli:masterfrom
bertdeblock:improve-detyping-gts-files
Mar 11, 2025
Merged

ef4 merged 1 commit into
ember-cli:masterfrom
bertdeblock:improve-detyping-gts-files

Conversation

@bertdeblock

Copy link
Copy Markdown
Member

@bertdeblock bertdeblock added the bug label Mar 1, 2025
@bertdeblock bertdeblock self-assigned this Mar 1, 2025
Comment thread lib/models/blueprint.js Resolved
@bertdeblock bertdeblock changed the title [BUGFIX] Improve detyping .gts files [BUGFIX] Improve de-typing .gts files Mar 1, 2025
Comment thread lib/models/blueprint.js
let strippedCode = code;
for (let i = 0; i < templateTagMatches.length; i++) {
const match = templateTagMatches[i];
const templateTag = substringBytes(code, match.range.start, match.range.end);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you may also be interested in content-tag-utils, which does the byte math for you: https://github.com/nullVoxPopuli/content-tag-utils

Windvis added a commit to Windvis/ember.js that referenced this pull request Mar 2, 2025
This applies the same changes as ember-cli/ember-cli#10659 so we don't need to wait for a new ember-cli release.

@Windvis Windvis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I applied the same changes as a patch in the ember PR, and it fixed the issue I was running into. Thanks! 🙏

@Windvis

Windvis commented Mar 3, 2025 •

Copy link
Copy Markdown
Contributor

What's the release strategy for this one? It blocks the PR in ember-source, since we need to list ember-cli as a devDependency there, but ember-cli releases after ember-source, so we can't merge it without a patch I think? Unless this is backported to a previous release.

@ef4
ef4 merged commit 487ae48 into ember-cli:master Mar 11, 2025
Windvis added a commit to Windvis/ember.js that referenced this pull request Mar 14, 2025
This applies the same changes as ember-cli/ember-cli#10659 so we don't need to wait for a new ember-cli release.
Windvis added a commit to Windvis/ember.js that referenced this pull request Mar 22, 2025
This applies the same changes as ember-cli/ember-cli#10659 so we don't need to wait for a new ember-cli release.
Windvis added a commit to Windvis/ember.js that referenced this pull request Apr 28, 2025
This applies the same changes as ember-cli/ember-cli#10659 so we don't need to wait for a new ember-cli release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants