-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cleanup internal breaking changes #5724
Conversation
🦋 Changeset detectedLatest commit: 76f163b The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
let firstArg = code.slice(firstArgStart, firstArgEnd); | ||
// If argument is template literal, try convert to a normal string. | ||
// This is needed for compat with previous recast strategy. | ||
// TODO: Remove in Astro 2.0 | ||
if (firstArg.startsWith('`') && firstArg.endsWith('`') && !firstArg.includes('${')) { | ||
firstArg = JSON.stringify(firstArg.slice(1, -1)); | ||
} | ||
const firstArg = code.slice(firstArgStart, firstArgEnd); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The intent here was to remove support for:
Astro.glob(`./foo/*.md`) // using template literals
which transforms to import.meta.glob
, but it looks like Vite 4 now supports template literal too so this is no longer a breaking change to note in the changeset.
Changes
toString
support forRenderTemplateResult
.Astro.glob
with template strings usageTesting
Existing test should passed.
Docs
I'm sending a docs PR to remove https://docs.astro.build/en/guides/typescript/#vue-components-are-mistakenly-typed-by-the-typesreact-package-when-installed as it's fixed in Volar.
withastro/docs#2276