Skip to content

Conversation

@trusktr
Copy link
Member

@trusktr trusktr commented Feb 9, 2025

No description provided.

…on into code. This allows more control over how code templates are loaded by the wrapping window.

Deprecations:

- Deprecate the use of `${host}` in source code that is provided to `<live-code>`, and instead support `${location.<prop>}` (f.e. `${location.pathname}`, `${location.href}`, etc).
  - Migration: use `${location.origin}` in place of `${host}`.
- Deprecate `href="/"` from being automatically converted to `href="<url>"` where `<url>` is the `location.origin` of the wrapping window.
  - Migration: use a `<base href="...">` tag along with `${location.<prop>}` if needed. If you previously had `<base href="/">` in an example's source, instead use `<base href="${location.origin}">` to opt into the same behavior.
@trusktr trusktr merged commit ceb6689 into main Feb 9, 2025
2 checks passed
@trusktr trusktr deleted the improve-interpolations branch February 9, 2025 23:13
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.

2 participants