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: stricter check before processing a script as javascript #314

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

DylanPiercey
Copy link
Contributor

Partially resolve #313 by adding more checks before processing a <script> as javascript/typescript code in the output.

@vwong FYI this change was made to align with the proposed future change of the tags api to make it such that the <script> tag is processed by Marko to act like the <effect> of the tags api preview. (https://github.com/marko-js/website/blob/next/src/routes/docs/core-tag.md#script.

Copy link

changeset-bot bot commented Dec 9, 2024

🦋 Changeset detected

Latest commit: 76b7fbf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@marko/language-tools Patch
@marko/language-server Patch
@marko/type-check Patch
marko-vscode Patch

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

@DylanPiercey DylanPiercey merged commit a839384 into main Dec 9, 2024
4 checks passed
@DylanPiercey DylanPiercey deleted the improve-script-tag-processing branch December 9, 2024 16:05
@github-actions github-actions bot mentioned this pull request Dec 9, 2024
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.

Not all scripts tags are JS
1 participant