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 gjs/gts sourcemaps -- we accidentally unlocked really good DX #2166

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

NullVoxPopuli
Copy link
Collaborator

@NullVoxPopuli NullVoxPopuli commented Nov 8, 2024

Alternative to:

Requires

Something that is quite surprising (in a good way), is that we can inspect live values in templates (which makes sense, and really shows the power of the content-tag strategy we're using.

For example:
image
image
image

…ource-map (it's not what anyone wants anyway)
@@ -59,8 +59,8 @@ export class Addon {
return hbs(options);
}

gjs(options?: { inline_source_map: boolean }) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removing this makes this PR a breaking change... but inline source map is likely never something anyone wants as it hasn't been compatible with rollup.

So... this PR "could" be a bugfix, I suppose.

Copy link
Collaborator

@SergeAstapov SergeAstapov Nov 10, 2024

Choose a reason for hiding this comment

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

@NullVoxPopuli IMO it's change in public API - so it's a breaking change regardless if ppl prefer/use inline source maps or not

Copy link
Member

Choose a reason for hiding this comment

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

@SergeAstapov agreed, and integers are cheap 👍

Copy link
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

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

:shipit:

@mansona mansona merged commit d0a9396 into stable Nov 11, 2024
221 checks passed
@mansona mansona deleted the content-tag-pr-86 branch November 11, 2024 10:13
@github-actions github-actions bot mentioned this pull request Nov 11, 2024
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.

3 participants